mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Mirror of https://github.com/zotero/zotero.git
Zotero.Item#setField() in loadIn mode repeats the same lookups for every value (field ID, type-specific field, validity for the type, multiline), several of which allocate. Cache them per item type and field in Zotero.ItemFields._getLoadInfo(). The cache is rebuilt by ItemFields.init() and dropped if any method it depends on is replaced, so an overridden method is still consulted. Also look up each item type's fields once per load rather than once per item. setField() is still called for every value with the same arguments, so code that wraps it sees the same calls, and the loaded data is identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| app | ||
| chrome | ||
| defaults/preferences | ||
| document-worker@8fb70af400 | ||
| js-build | ||
| note-editor@acec74d09b | ||
| reader@e7a93982ba | ||
| resource | ||
| scripts | ||
| scss | ||
| styles@dff7452b24 | ||
| test | ||
| translators@60f2d542ff | ||
| types/gecko | ||
| .babelrc | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| chrome.manifest | ||
| CLAUDE.md | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| update.rdf | ||
| version | ||
Zotero
Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.
For more information on how to use this source code, see the Zotero documentation.