-
I noticed a significant performance impact on annotating when using a recommender (in this case I'm using the built-in Multi-Token Sequence Classifier (OpenNLP NER)). When the recommender is active, annotation becomes more sluggish after a while. Single-clicking a label may then take 0.5-1 second, which significant hampers the workflow. At some point, the UI may not accept any inputs for a while (i.e. the single clicked labels don't get accepted for a while or at all). Reloading the page rectifies the situation, at least for a while. I noticed those pop up messages appearing frequently (but unsure whether this is related): Is that expected? Is there anything wrong with my setup? It's a single-user setup running locally. The system has 32GiB of RAM of with only 50% is being used. The JVM (openjdk 17.0.6) runs with the default limit of 8GiB. The CPU is a fairly recent Intel Core i7. I'm running Linux and tried Chrome and Firefox with the same result. I'm using 27.2. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 32 replies
-
It sounds like there might be some kind of leak on the browser side. Do you use any sidebars while annotating, and if so which one(s)? You could try starting INCEpTION with |
Beta Was this translation helpful? Give feedback.
-
As everything felt too slow with debugging on, I labeled until the tool got stuck. When I clock (or it may actually be the hover event) on a suggestion, the following request is sent:
The timing is as follows: Other UI elements (changing pages, changing labels from the right sidebar) work, but clicking on the suggested labels doesn't seem to have any effect (except for sending the above request). Here is a particularly slow request to /annotate?2-2.0-centerArea-editor (after reloading the page, when it didn't get stuck, yet): |
Beta Was this translation helpful? Give feedback.
-
Hello! We have absolutely the same problem. If you create a new project, it is still very fast, but it gets slower and slower with each document that you processed. The 1.800ms come from a project with 150 documents at the moment. One document has on average 30 lines. Best regards |
Beta Was this translation helpful? Give feedback.
-
Depending on the project, the predictions are between 40 and 130, whereby the documents from projects with 40 to 50 are not faster than those with 110 to 130. |
Beta Was this translation helpful? Give feedback.
-
Please try the latest INCEpTION 27.5. That includes #3938 which should (hopefully) resolve the performance issue with the recommenders. |
Beta Was this translation helpful? Give feedback.
-
Thanks for working on that issue! I'm on a business trip and cannot test whether the new release fixes my problem right now. When I'm back next week, I'll test it. If the issue persists, I'll be able to share example data privately with you. |
Beta Was this translation helpful? Give feedback.
@senier I have tried to make this code a bit more robust in v27.8 - please try. My assumption is that it may be an input action timing issue since you seem to be having the problem in irregular intervals and probably not always at the same place/under the same condition. If you still run into the problem, it would be helpful if you could privately provide me with a project that allows reproducing the issue with a deterministic sequence of actions.