You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
If string concatenation is the bottleneck in this calculation than you should try storing the string parts in an array and than join them using join().
This has proven to be much faster than "normal" string concatenation.
funny, in my chrome v70 browser, concat with 'x = x + substr' is faster by factor 1.5.
also push is faster than assign.
but im still puzzled, why jQuery.html is so slow ... maybe cos the context is XHTML?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
dear Vanilla-Semantic-UI, please keep up the fight for better performance
this is a copy-paste from Semantic-UI issue 6703
Semantic-UI should run faster. jQuery is slow. prefer native JS
Expected Result
run faster
Actual Result
running slow : P
Version
2.4.2
Desc
this concerns the abuse of jQuery.
when i see code like ...
in src/definitions/modules/dropdown.js line 360
... i suspect: this cant be fast.
and its not:
etc ...
templates.dropdown is fast, cos it only concats strings
in src/definitions/modules/dropdown.js line 3900
references
https://ilikekillnerds.com/2015/02/stop-writing-slow-javascript/
The text was updated successfully, but these errors were encountered: