Closed kzssc closed 1 year ago
Hmm, can't see anything out of the ordinary here.
Do you maybe have an old device, or low free RAM? If it is the latter, a restart of your mac might help.
If you use pandoc normally to convert a markdown file with citations, how long does that take?
Also could you attach a full debugging log? That could help pinpoint where the bottleneck might be
[7:49:46.452 am] Logging Started... [7:49:49.001 am] Supercharged Citation Picker[Hotkey] Processing complete [7:49:49.012 am] Supercharged Citation Picker[Hotkey] Passing output '' to Script Filter [7:49:49.037 am] Supercharged Citation Picker[Script Filter] Queuing argument '(null)' [7:49:49.196 am] Supercharged Citation Picker[Script Filter] Script with argv '(null)' finished [7:49:49.204 am] Supercharged Citation Picker[Script Filter] [truncated] [7:49:52.725 am] Supercharged Citation Picker[Script Filter] Processing complete [7:49:52.808 am] Supercharged Citation Picker[Script Filter] Passing output 'gilabert2023HumanDignitySocial' to Run Script [7:49:59.368 am] Logging Stopped.
edit: shortened by @chrisgrieser since only the timestamps matter
Hmm, can't see anything out of the ordinary here.
Do you maybe have an old device, or low free RAM? If it is the latter, a restart of your mac might help.
M1 8G ram here.
If you use pandoc normally to convert a markdown file with citations, how long does that take?
The pandoc conversion to .docx is instant (contains multiple references), much quicker than the Paste.
Hmmm, not sure what could be the bottleneck here if your device is an M1 and pandoc is otherwise instant.
So measured it, and for me, the bibliography-pasting took 800ms, also on an M1 mac. I improved the code, now it takes only 350ms for me. Could you try version 11.6.3?
If it still takes a lot of time:
insert the path to your bibtex library, and then copypaste this snippet into your terminal and press enter. it should give some numbers as output how long this command took.
LIBRARY="$HOME/.config/pandoc/main-bibliography.bib"
CITEKEY="gilabert2023HumanDignitySocial"
DUMMYDOC="---
nocite: '@$CITEKEY'
---"
time echo "$DUMMYDOC" |
pandoc --citeproc --wrap=none --read=markdown --write=plain --bibliography="$LIBRARY"
much quicker!!
[2:08:17.888 pm] Supercharged Citation Picker[Script Filter] Processing complete [2:08:17.960 pm] Supercharged Citation Picker[Script Filter] Passing output 'gilabert2023HumanDignitySocial' to Run Script [2:08:19.885 pm] Supercharged Citation Picker[Run Script] Processing complete [2:08:19.898 pm] Supercharged Citation Picker[Run Script] Passing output 'Gilabert, P. (2023). Human Dignity and Social Justice. OUP Oxford.' to Copy to Clipboard
Hmm, it still takes way longer than on my device though (2000ms vs 350ms) 🤔
But well, guess it's now at least quick enough to work properly with?
Bug Description
Full Bibliography Paste takes a bit long, albeit works without issue upon wait.
Followed Chris's advice here to update my pandoc (now ver. 3.1.5) there has been a small decrease in waiting time, from 5-6s to ~4s, I think.
relevance unsure: my library contains over 10k entries
Relevant Screenshot
No response
To Reproduce
No response
Debugging Log
Sample BibTeX Entries
Buffer Files
untitled folder 2.zip
Workflow Configuration
Checklist
scp
, selectForce Buffer Reload
).