Caideyipi opened a new pull request, #18731: URL: https://github.com/apache/iotdb/pull/18731
## Summary - cache each table's last registered DataNode table-cache version per TsFileProcessor - skip table-cache lookup, schema conversion, and writer map replacement while that version is unchanged - refresh tables independently after the global cache version changes - add correctness coverage and a manually enabled performance UT ## Performance Manual UT: TsFileTableSchemaRegistrationPerformanceTest#tableSchemaRegistrationBenchmark Properties: enabled=true, warmup=20,000, iterations=100,000, rounds=7. | Path | Median CPU | Allocation | Supplier calls | | --- | ---: | ---: | ---: | | Previous behavior | 312.50 ns/op | 88.00 bytes/op | 700,000 | | Cached registration | 156.25 ns/op | 32.00 bytes/op | 0 | CPU decreased 50.00% and allocation decreased 63.64% in the steady-state registration path. ## Test - TsFileProcessorTest#testRegisterToTsFileCachesTableSchemaByVersion - TsFileTableSchemaRegistrationPerformanceTest#tableSchemaRegistrationBenchmark - mvn spotless:apply -pl iotdb-core/datanode -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
