Shared Project Index Download Time (IntelliJ IDEA 2023.1.3)
I'm currently testing the shared project index feature with the newly released command line tool (ij-shared-indexes-tool-cli-0.9.1). It's really great that we do not have to script the several required steps for the index generation ourselves anymore. And I really appreciate the boost feature for evaluation purposes. But I have two questions:
Is it possible to run the index generation without starting the built in server (ktor)? I plan to build indexes for several projects and don't want (each/any) one to start a server.
How is the download time of the shared project index measured? In our case downloading takes 2 m 4 s 814 ms for 699,38 MB. Does this time include decompression and processing?
If yes, that should be communicated to the user (in the logs and the download process inside the IDE). Otherwise people start investigating why their servers deliver the index files that slow.
If no, why does downloading take so much time, even when the server is on the same machine than the IDE? In comparison downloading the index files via browser is a matter of seconds. I would be glad if someone could clarify what the term "download" includes and if there are ways to speed it up.
Any feedback is appreciated :-)
Please sign in to leave a comment.
> Is it possible to run the index generation without starting the built in server (ktor)? I plan to build indexes for several projects and don't want (each/any) one to start a server.
This is not possible currently from the CLI. Please vote for the https://youtrack.jetbrains.com/issue/IDEA-322475/ for updates and we will support it.
As a workaround, you could check the code sample here and you could write a sample code to generate the shared indexes without starting the server: https://github.com/JetBrains/intellij-shared-indexes-tool-example/tree/main/src/main/kotlin/com/intellij/indexing/shared
> How is the download time of the shared project index measured? In our case downloading takes 2 m 4 s 814 ms for 699,38 MB. Does this time include decompression and processing?
If yes, that should be communicated to the user (in the logs and the download process inside the IDE). Otherwise people start investigating why their servers deliver the index files that slow.
This is not only download time from my checking.
It includes the decompressing and processing time.
I have created an issue here for improving it: https://youtrack.jetbrains.com/issue/IDEA-324015/Shared-indexes-are-downloaded-for-notification-is-misleading
Thanks for the feedback Lejia. I'll vote for the issues and check the code samples.