Francisco Guerrero created CASSSIDECAR-355:
----------------------------------------------
Summary: Avoid creating objects in the CassandraAdapter
implementation
Key: CASSSIDECAR-355
URL: https://issues.apache.org/jira/browse/CASSSIDECAR-355
Project: Sidecar for Apache Cassandra
Issue Type: Bug
Reporter: Francisco Guerrero
Assignee: Francisco Guerrero
Attachments: PastedGraphic-1.png
We need to avoid re-recreating internal objects used by the adapter every time
we use them. There’s no need to recreate them, and we are losing some cached
values which we need to recompute on every request. One outstanding example is
recomputing the value for the
{{org.apache.cassandra.sidecar.adapters.base.CassandraStorageOperations#dataFileLocations}}
which is supposed to remain cached, but because we are creating the
{{org.apache.cassandra.sidecar.adapters.base.CassandraStorageOperations}} every
time the
{{org.apache.cassandra.sidecar.adapters.base.CassandraAdapter#storageOperations}}
method is called, we are not actually effectively gaining anything.
We can actually see some of these issues show up in flamegraphs taking up a
non-insignificant amount of CPU.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]