Coder Social home page Coder Social logo

Smi, Value32/64 about escargot HOT 3 CLOSED

samsung avatar samsung commented on September 26, 2024
Smi, Value32/64

from escargot.

Comments (3)

ksh8281 avatar ksh8281 commented on September 26, 2024

A. we tested large Value array typed malloc, but performance is too bad..(versus SmallValue array)
because telling to bdwgc element of array are POD or pointer is slow.
but even internal value of SmallValue is always pointer, odd internal value of SmallValue is always integer,
so we don't have to tell to bdwgc element of array is POD or pointer

B. we tested doing common operations with SmallValue. but it is slow...
testing it's type on every operation takes much time. because there is no type information(int, undefined, null, pointer-value...) saved directly(versus Value).
EDITED) I missed one point. doing many floating point operations occurs so many gc_mallloc due to saving floating number in SmallValue

C. In 32 bit system, store Value into SmallValue has 4 byte gain + preventing memory leak
in 64 bit system, store Value into SmallValue has 0 byte gain but this preventing memory leak

That's why we use Value on computing, SmallValue for storage

I am glad if you reduce Value<->SmallValue converting cost

from escargot.

zherczeg avatar zherczeg commented on September 26, 2024

I created common values for smi and value on 64 bit, and it is working now. Please check #92, is this what you prefer?

from escargot.

ksh8281 avatar ksh8281 commented on September 26, 2024

#92 is very cool. that is good way reducing conversion costs I think

from escargot.

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.