Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering improvements #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gokhanakkurt
Copy link

Array is filtered every time when the filtered array is required. This is an overhead when application provides a list of 100k words. It works slowly and blocks UI thread.

Words list should be filtered once and stored as instance variable. If this array is required, this instance variable can be invoked. There is no need to filter and filter again list of words for the same text.

Array is always filtered when the filtered array is required. This is
an overhead when the data has 100k of words. It’s too slow and blocks
UI thread.

This should be like filter the array and store in controller and used
that private filtered array when required. Do not need to filter an
filter again.
@Horray
Copy link

Horray commented Jun 26, 2015

+10

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.

2 participants