Skip to content

Small performance cache improvement#6

Open
bwbroersma wants to merge 3 commits into
jedp:masterfrom
SlowSearch:performance1
Open

Small performance cache improvement#6
bwbroersma wants to merge 3 commits into
jedp:masterfrom
SlowSearch:performance1

Conversation

@bwbroersma

Copy link
Copy Markdown

Small performance improvement, by also caching/memoize the stemmed output as input. So when stemming banks which stems to bank it will also cache bank as input. This is a speed over memory decision, and will cache 'useless' stemmed output as input like acknowledg.

…ctor' to "Dr Porter's test", now we have a failing test case.
"An Object has a prototype, so there are default keys in the map that could collide with your keys if you're not careful. As of ES5 can be bypassed by using map = Object.create(null), but is seldom done." - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Objects_and_maps_compared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant