Title: INFLATE.LUA uses too much memory for large memory model interpreters · Issue #1 · Lethja/lua-scripts · GitHub
Open Graph Title: INFLATE.LUA uses too much memory for large memory model interpreters · Issue #1 · Lethja/lua-scripts
X Title: INFLATE.LUA uses too much memory for large memory model interpreters · Issue #1 · Lethja/lua-scripts
Description: While INFLATE.LUA can successfully extract deflate and deflate64 compressed files from a zip (as demonstrated in its unit test) it uses way too many Lua tables to do so. On modern machines such as the ones that run the GitHub workflow th...
Open Graph Description: While INFLATE.LUA can successfully extract deflate and deflate64 compressed files from a zip (as demonstrated in its unit test) it uses way too many Lua tables to do so. On modern machines such as ...
X Description: While INFLATE.LUA can successfully extract deflate and deflate64 compressed files from a zip (as demonstrated in its unit test) it uses way too many Lua tables to do so. On modern machines such as ...
Opengraph URL: https://github.com/Lethja/lua-scripts/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"INFLATE.LUA uses too much memory for large memory model interpreters","articleBody":"While [INFLATE.LUA](https://github.com/Lethja/lua-scripts/blob/master/arch/INFLATE.LUA) can successfully extract deflate and deflate64 compressed files from a zip (as demonstrated in its [unit test](https://github.com/Lethja/lua-scripts/blob/master/meta/test/unzip/test.sh)) it uses way too many Lua tables to do so. On modern machines such as the ones that run [the GitHub workflow](https://github.com/Lethja/lua-scripts/blob/master/.github/workflows/LuaScripts.yml) this is inconsequential. On retro machines with limited memory and processing power however, it becomes unbearably slow; that is, if it's usable at all.\n\nThis issue can be worked around by packing arrays and tables into strings and using `string.unpack()` on data when it's actually required. Although more tricky that a pure table approach the memory and computational savings are significant which should allow INFLATE.LUA to run much better on retro machines. The start of this conversion can be seen in commit cd112c73255ba4b6b43a98a7afa3639638960881.\n","author":{"url":"https://github.com/Lethja","@type":"Person","name":"Lethja"},"datePublished":"2026-01-01T03:44:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/lua-scripts/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3124601e-9afb-9f14-21df-767f42533dbc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD70:341934:A5BF0F:E6DCDB:6A4C9FCE |
| html-safe-nonce | 2c760487f81ee68384e739a5c4cf3d71ce70c04279342081b8abd5a2fb9416da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDcwOjM0MTkzNDpBNUJGMEY6RTZEQ0RCOjZBNEM5RkNFIiwidmlzaXRvcl9pZCI6IjcxNjUyOTI0OTAwMDEyNjA0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7cbea70ab2df87a3801a29d46c9f4fcfe130a1a44ea488bbf14671efeb81c114 |
| hovercard-subject-tag | issue:3774081582 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Lethja/lua-scripts/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0121bc0eb533baceeb6df65a1834c2c406db8048cc4386c5eb9ccd87dc3d4093/Lethja/lua-scripts/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0121bc0eb533baceeb6df65a1834c2c406db8048cc4386c5eb9ccd87dc3d4093/Lethja/lua-scripts/issues/1 |
| og:image:alt | While INFLATE.LUA can successfully extract deflate and deflate64 compressed files from a zip (as demonstrated in its unit test) it uses way too many Lua tables to do so. On modern machines such as ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lethja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/Lethja/lua-scripts git https://github.com/Lethja/lua-scripts.git |
| octolytics-dimension-user_id | 150316953 |
| octolytics-dimension-user_login | Lethja |
| octolytics-dimension-repository_id | 1022542351 |
| octolytics-dimension-repository_nwo | Lethja/lua-scripts |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1022542351 |
| octolytics-dimension-repository_network_root_nwo | Lethja/lua-scripts |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width