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

Instance Cache added to DocumentParser::parse() #788

Merged

Conversation

carlcasbolt
Copy link
Contributor

  • I've discovered that this method was being called a lot of times when indexing large volumes of documents with my bulk indexer code.
  • Constantly parsing a Reflection class was becoming too costly so I've added an instance cache to store the document information.

@saimaz
Copy link
Member

saimaz commented May 17, 2017

Nice catch @carlcasbolt. Thank you for the PR.

@saimaz saimaz changed the base branch from master to 5.0 May 17, 2017 15:14
@saimaz
Copy link
Member

saimaz commented May 17, 2017

I changed the base to 5.0, could you please rebase your PR branch accordingly?

@carlcasbolt
Copy link
Contributor Author

rebasing now

@carlcasbolt carlcasbolt force-pushed the DocumentParser-document-cache branch from 06ba756 to 0f3dbad Compare May 17, 2017 15:19
- I've discovered that this method was being called a lot of times when indexing large volumes of documents with my bulk indexer code.
- Constantly parsing a Reflection class was becoming too costly so I've added an instance cache to store the document information.
@carlcasbolt carlcasbolt force-pushed the DocumentParser-document-cache branch from 0f3dbad to 431c986 Compare May 17, 2017 15:20
@carlcasbolt
Copy link
Contributor Author

done

@saimaz saimaz merged commit b638601 into ongr-io:5.0 May 17, 2017
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.

None yet

2 participants