enso/lib/scala
Hubert Plociniczak 6769ab0ee7
Downgrade hashing to SHA-1 and other optimizations (#5791)
This change downgrades hashing algorithm used in caching IR and library bindings to SHA-1. It is sufficient and significantly faster for the purpose of simple checksum we use it for.

Additionally, don't calculate the digest for serialized bytes - if we get the expected object type then we are confident about the integrity.

Don't initialize Jackson's ObjectMapper for every metadata serialization/de-serialization. Initialization is very costly.

Avoid unnecessary conversions between Scala and Java. Those back-and-forth `asScala` and `asJava` are pretty expensive.

Finally fix an SBT warning when generating library cache.

Closes https://github.com/enso-org/enso/issues/5763

# Important Notes
The change cuts roughly 0.8-1s from the overall startup.
This change will certainly lead to invalidation of existing caches. It is advised to simply start with a clean slate.
2023-03-09 07:36:59 +00:00
..
akka-native/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
cli/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
connected-lock-manager/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
distribution-manager/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
docs-generator Pre compute suggestion db during build time (#5698) 2023-03-08 12:37:48 +00:00
downloader/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
edition-updater/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
edition-uploader/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
editions/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
flexer enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
graph enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
interpreter-dsl/src/main/java/org/enso/interpreter/dsl Adjust generateCheckedArgumentRead to return correct expected type (#5769) 2023-02-27 17:23:45 +00:00
json-rpc-server Message handler supervisor (#3881) 2022-11-17 19:02:04 +00:00
json-rpc-server-test enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
library-manager/src Optimize import/export resolution (#5700) 2023-03-01 08:53:29 +00:00
library-manager-test/src Optimize import/export resolution (#5700) 2023-03-01 08:53:29 +00:00
locking-test-helper/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
logger enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
logging-service/src Exception message may not be specified (#5715) 2023-02-22 03:43:46 +00:00
logging-truffle-connector/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
logging-utils/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
parser-service Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
pkg Downgrade hashing to SHA-1 and other optimizations (#5791) 2023-03-09 07:36:59 +00:00
profiling-utils/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
project-manager enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
runtime-version-manager/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
runtime-version-manager-test/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
searcher/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
syntax Roll back last VCS snapshot (#4050) 2023-02-16 18:14:34 +00:00
task-progress-notifications/src/main/scala/org/enso/cli/task/notifications New Language Server API Implementations / Mocks (#1875) 2021-07-17 16:49:51 +02:00
testkit/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
text-buffer/src enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
version-output/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00