Skip to content

Updated KniDeviceList to use internal::DeviceListBase. #1797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Dimi1010
Copy link
Collaborator

Changes:

  • Added reserve and capacity to PointerVector
  • Updated KniDeviceList to use internal::DeviceListBase.

Copy link

codecov bot commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.07%. Comparing base (f2863df) to head (b34d5fd).
Report is 4 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1797      +/-   ##
==========================================
- Coverage   83.07%   83.07%   -0.01%     
==========================================
  Files         284      284              
  Lines       48967    48966       -1     
  Branches    10550    10389     -161     
==========================================
- Hits        40681    40679       -2     
+ Misses       7181     7180       -1     
- Partials     1105     1107       +2     
Flag Coverage Δ
alpine320 75.03% <ø> (ø)
fedora42 75.13% <ø> (+<0.01%) ⬆️
macos-13 80.58% <ø> (ø)
macos-14 80.58% <ø> (ø)
macos-15 80.55% <ø> (ø)
mingw32 70.68% <ø> (-0.02%) ⬇️
mingw64 70.63% <ø> (-0.04%) ⬇️
npcap 85.05% <ø> (-0.02%) ⬇️
rhel94 74.90% <ø> (-0.03%) ⬇️
ubuntu2004 58.53% <ø> (+0.02%) ⬆️
ubuntu2004-zstd 58.66% <ø> (+0.03%) ⬆️
ubuntu2204 74.82% <ø> (-0.03%) ⬇️
ubuntu2204-icpx 61.47% <ø> (ø)
ubuntu2404 75.08% <ø> (-0.02%) ⬇️
ubuntu2404-arm64 75.07% <ø> (ø)
unittest 83.07% <ø> (-0.01%) ⬇️
windows-2019 85.08% <ø> (-0.01%) ⬇️
windows-2022 85.09% <ø> (-0.01%) ⬇️
winpcap 85.23% <ø> (ø)
xdp 50.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Dimi1010 Dimi1010 marked this pull request as ready for review April 30, 2025 20:16
@Dimi1010 Dimi1010 requested a review from seladb as a code owner April 30, 2025 20:16
Comment on lines +220 to +225
/// @brief Get the current capacity of the vector.
/// @return The number of elements that can be held in the vector without requiring a reallocation.
size_t capacity() const
{
return m_Vector.capacity();
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Collaborator Author

@Dimi1010 Dimi1010 May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at the moment, but since a reserve is provided, it seems nice to also provide a way to actually check the capacity of the vector, no? Most of the containers I have seen either have both or neither.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's ok and we can keep it...

@Dimi1010 Dimi1010 merged commit bfaf2ed into seladb:dev May 3, 2025
43 checks passed
@Dimi1010 Dimi1010 deleted the refactor/kni-device-list-use-base-list branch May 3, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants