Skip to content

Commit 0a5bc0d

Browse files
committed
Scrape and update EC2 pricing data.
Also use larger ijson buffer for faster parsing.
1 parent acf6859 commit 0a5bc0d

File tree

2 files changed

+49287
-41867
lines changed

2 files changed

+49287
-41867
lines changed

contrib/scrape-ec2-prices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Buffer size for ijson.parse() function. Larger buffer size results in increased memory
3333
# consumption, but faster parsing.
34-
IJSON_BUF_SIZE = 10 * 65536
34+
IJSON_BUF_SIZE = 30 * 65536
3535

3636
# same URL as the one used by scrape-ec2-sizes.py, now it has official data on pricing
3737
URL = "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json"

0 commit comments

Comments
 (0)