• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-terra / 5588970869
87%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2023 03:14PM UTC
Jobs 1
Files 1265
Run time 22s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5588970869

push

github

web-flow
Slightly optimize ParameterVector construction (#10403)

This commit optimizes the construction code for the ParameterVector and
ParameterVectorElement classes. The construction of these objects was
primarily dominated by the UUID construction time. This is because each
element in the vector was calling uuid4() to generate a random unique
identifier for each Parameter element. However, we don't need a truly
random identifier as we just need to avoid collisions with identically
named elements. So instead of calling uuid4() n times this commit opts
to call uuid4() once and then just use an index offset of that value.
This is slightly faster because we don't need to need run the full
uuid4 algorithm each time and instead just wrap an integer in uuid
object. While this does slightly increase the change of a collision
between identically named ParameterVectors, in practice it should still
be sufficiently rare. At the same time the classes are slotted to speed
up attribute access and shrink the memory footprint of using these
objects.

The geometric mean of the runtime of creating 10x 2424000 element
ParamterVector objects goes from 15.702722168587812 to 13.738723886030732
sec with this commit. While not a huge improvement it is a consistent
incremental gain that doesn't require any data model changes. To make
the classes significantly faster we'll likely need to change the data
model for Paramter, ParameterVector, etc to facilitate faster creation.

72406 of 84150 relevant lines covered (86.04%)

45807.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5588970869.1 18 Jul 2023 03:14PM UTC 0
86.04
GitHub Action Run
Source Files on build 5588970869
Detailed source file information is not available for this build.
  • Back to Repo
  • 5ab231d1 on github
  • Prev Build on main (#5582955280)
  • Next Build on main (#5589940418)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc