Skip to content

Instantly share code, notes, and snippets.

@623637646
Created March 14, 2019 08:53
Show Gist options
  • Save 623637646/491c5169bcda9ab22b3a62cde0c81b86 to your computer and use it in GitHub Desktop.
Save 623637646/491c5169bcda9ab22b3a62cde0c81b86 to your computer and use it in GitHub Desktop.
Safari memory hole
<html>
<head>
<title>Safari Memory Hole</title>
</head>
<body>
<textarea>This file takes 30MB in Chrome but 2GB in Safari</textarea>
<script>
var m = {};
for (var i = 0; i < 50; i++) {
m[i] = [];
for (var j = 0; j < 66; j++) {
m[i].push({ "status": 1, "discount_rule_flag": 112, "rebate_delta": 4000000000, "description": "July Promo - 40k off MBS 99k - An Giang Sellers Buyers (with Blacklist 201807013104)", "rebate_flag": 16, "start_time": 1530378000, "mtime": 1530272479, "shopid": 0, "groupid": 0, "discount_delta": 4000000000, "rebate_rule_flag": 0, "end_time": 1533056400, "snapshot_id": 401, "priority": 2, "extra_data": { "rebate_rounding_factor": 0, "buyer_location_group_id": 6, "buyer_list_entity_permission_group": 0, "seller_location_group_id": 6, "percentage_rebate_cap": 0, "percentage_discount_cap": 0, "min_order_total": 9900000000, "seller_location_group_name": "An Giang", "buyer_location_group_name": "An Giang", "entity_permission_group": 201807013104, "discount_rounding_factor": 50000000 }, "id": 364, "channels": { "50010": {}, "50011": {}, "50012": {}, "50015": {}, "50016": {}, "50066": {} }, "discount_flag": 65540 });
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment