Giter Club home page Giter Club logo

Comments (4)

runeimp avatar runeimp commented on May 25, 2024

I'm not in any way part of the dev team. But why are you creating a map with the same key 10,000 times? What is the possible use case? Do you need to script maps with over 2048 keys? I don't know if that is the actual limit but it would be a reasonable one. What is your actual goal?

from tengo.

TerminalFi avatar TerminalFi commented on May 25, 2024

Pretty sure this is related to stack size which is default if 2048

from tengo.

geseq avatar geseq commented on May 25, 2024

It’s the stack size. I suppose it could be made variable so it could be increased.

from tengo.

geseq avatar geseq commented on May 25, 2024

That said, a more sensible way would’ve been to do

m := {}
for i in range(1, 10000) {
    m[i] = “something”
}

which wouldn’t be affected by the stack size limit

from tengo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.