X 归档 2020-04-03
⚡️Flutter is fast by default, but let's find out what might affect your app's performance.
Join @filiphracek at #FlutterEurope as he walks the audience through an app with many performance issues, and tries to address all of them.
Watch here → https://goo.gle/2UPajJy
Join @filiphracek at #FlutterEurope as he walks the audience through an app with many performance issues, and tries to address all of them.
Watch here → https://goo.gle/2UPajJy
⚡️Flutter 默认就很快,但来看看有哪些东西可能影响你应用的性能。
来 #FlutterEurope 看 @filiphracek 带观众剖析一个性能问题一堆的应用,并尝试把它们逐一解决。
在此观看 →
来 #FlutterEurope 看 @filiphracek 带观众剖析一个性能问题一堆的应用,并尝试把它们逐一解决。
在此观看 →
飘浮的彩纸 🎉🎊
🔗 ->
#threejs #webgl #glsl #javascript
🔗 ->
#threejs #webgl #glsl #javascript
WebAssembly without Emscripten http://schellcode.github.io/webassembly-without-emscripten "if you’re seriously targeting the web as a platform, I suggest to look into getting rid of Emscripten to a streamlined, smaller and faster build process"
不用 Emscripten 搞 WebAssembly http://schellcode.github.io/webassembly-without-emscripten “如果你是认真把 web 当目标平台,我建议研究一下甩掉 Emscripten,换上更精简、更小、更快的构建流程”
In Javascript, if you need to round down a float, you can use Math.floor, but what if the number can be negative? Doing Math.floor on -2.5 will round down to -3.
Maybe, what you really want is Math.trunc, which will always just remove any decimal.
#100DaysOfCode #javascript
Maybe, what you really want is Math.trunc, which will always just remove any decimal.
#100DaysOfCode #javascript
在 JavaScript 里,如果你要把浮点数向下取整,可以用 Math.floor,但如果这个数可能是负数呢?对 -2.5 做 Math.floor 会向下舍入成 -3。
也许你真正想要的是 Math.trunc,它永远只是直接去掉小数部分。
#100DaysOfCode #javascript
也许你真正想要的是 Math.trunc,它永远只是直接去掉小数部分。
#100DaysOfCode #javascript





