Comments (1)
Ran a little bench mark on the two approaches -- it seems this actually turns out much slower than the current implementation on non-JIT lua. I assume the underlying call to C's pow()
is more expensive than the cost of calling a lua cfunc which then calls C's sqrt()
.
On LuaJIT there seems to be little difference between either method, per usual!
from lume.
Related Issues (20)
- Use LÖVE's love.math.random when available HOT 4
- Support writing functions/threads in lume.serialize HOT 2
- lume.array HOT 2
- hotswap discards non-table values HOT 2
- memorize not memoize HOT 1
- lume.sign(x) with 0 -> 0 ? HOT 2
- setTimeout() and setInterval() HOT 2
- Possibility of adding lume.deepclone
- lume.reduce with a falsy initial value HOT 1
- unable to install via luarocks with lua 5.4 HOT 1
- lume.format(str, table) doesn't properly handle false values HOT 2
- pass keys to lume.map function
- `lume.isarray` doesn't return correct results for mixed tables or empty arrays HOT 2
- Just some food for thought... math.round HOT 2
- Probabilities of `lume.shuffle` are horribly broken HOT 1
- lume.weightedchoice - if rnd <= v instead of if rnd < v
- Sort functions alphabetically HOT 1
- lume.sign(0) returns 1 rather than 0 HOT 3
- luacheck? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lume.