datasette / datasette-enrichments-quickjs

Enrich data with a custom JavaScript function
Apache License 2.0
1 stars 0 forks source link

Set a memory limit on quickjs #4

Closed simonw closed 7 months ago

simonw commented 7 months ago

I found some code that hangs QuickJS by using too much memory. Can fix this with:

f3.set_memory_limit(4 * 1024 * 1024) # 4MB

Investigated here: https://chat.openai.com/share/02157b35-2c23-42a0-88f8-8b758ca37810