rmm5t / liquidmetal Goto Github PK
View Code? Open in Web Editor NEW:sweat_drops::metal: A mimetic poly-alloy of the Quicksilver scoring algorithm, essentially LiquidMetal. </Schwarzenegger Voice>
License: MIT License
:sweat_drops::metal: A mimetic poly-alloy of the Quicksilver scoring algorithm, essentially LiquidMetal. </Schwarzenegger Voice>
License: MIT License
Hi,
I have a ~3000 items list with average item size of 50 characters.
When searching several times for items that are not in the list, especially when copy pasting in the search box, the whole tab becomes laggy and end up crashing.
Chrome timeline shows that memory usage goes up to 680mb.
Would you mind publishing liquidmetal to npm? Looks like everything is ready (package.json with a proper main field, cjs export in the library itself).
Thanks!
in the _scoreAll you add scores to allScores and then return if abbrIndex = abbrev.length ... at this point can you not return a boolean and check this at the end of the while statement. if it is true then break out and keep returning all the way back to the top. Am I missing something? This would make it much quicker
Any chance this library could be registered in the bower registry? We would love to use this library for a project but we prefer our modules to be bower managed.
Hello,
The version published to bower doesn't include the module checking (86ca6b2), so I had to copy/paste liquidmetal.js
directly from here. Would be nice to get it fixed. ๐
You iterate over arrays using for-in which is not only bad practice but breaks as soon another script extends Array.prototype.
You lowerCase chars and split them, you can iterate over a String using its length attribute.
Otherwise, inspiring idea for a search algorithm.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.