[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francisco Guerrero updated CASSSIDECAR-355:
-------------------------------------------
     Bug Category: Parent values: Degradation(12984)Level 1 values: Resource 
Management(12995)
       Complexity: Normal
      Component/s: Performance
    Discovered By: Performance Regression Test
    Fix Version/s: 0.3
         Severity: Normal
           Status: Open  (was: Triage Needed)

> 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
>          Components: Performance
>            Reporter: Francisco Guerrero
>            Assignee: Francisco Guerrero
>            Priority: Major
>             Fix For: 0.3
>
>         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]

Reply via email to