Skip to content
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

Forward cache simplify #2514

Merged
merged 6 commits into from
Mar 11, 2024
Merged

Conversation

kunga
Copy link
Member

@kunga kunga commented Mar 6, 2024

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

Simplify NFwd::TCache so it doesn't use NTable::TForward (without handling page faults as before)

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 14:03:19 UTC Pre-commit check for 464cb3f has started.
2024-03-06 14:03:20 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-06 14:06:43 UTC Build successful.
2024-03-06 14:06:52 UTC Tests are running...
🔴 2024-03-06 15:55:15 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68162 56054 0 500 11152 456

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 14:31:20 UTC Pre-commit check for 464cb3f has started.
2024-03-06 14:31:21 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-06 14:33:32 UTC Build successful.
2024-03-06 14:33:41 UTC Tests are running...
🔴 2024-03-06 16:35:01 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14964 13625 0 534 319 486

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 14:50:27 UTC Pre-commit check for 464cb3f has started.
2024-03-06 14:50:29 UTC Build linux-x86_64-release-cmake14 is running...
🟢 2024-03-06 14:54:08 UTC Build successful.

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 17:44:14 UTC Pre-commit check for 538b0b0 has started.
2024-03-06 17:44:17 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-06 17:46:55 UTC Build successful.
2024-03-06 17:47:08 UTC Tests are running...
🔴 2024-03-06 19:37:57 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68248 57293 0 5 10918 32

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 17:44:22 UTC Pre-commit check for 538b0b0 has started.
2024-03-06 17:44:25 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-06 17:47:26 UTC Build successful.
2024-03-06 17:47:38 UTC Tests are running...
🔴 2024-03-06 19:35:44 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14947 14778 0 33 102 34

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 17:44:27 UTC Pre-commit check for 538b0b0 has started.
2024-03-06 17:44:30 UTC Build linux-x86_64-release-cmake14 is running...
🟢 2024-03-06 17:55:18 UTC Build successful.

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 22:28:03 UTC Pre-commit check for 0456d4d has started.
2024-03-06 22:28:04 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-06 22:30:24 UTC Build successful.
2024-03-06 22:30:35 UTC Tests are running...
🔴 2024-03-07 00:12:30 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14959 14792 0 28 107 32

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 22:29:11 UTC Pre-commit check for 0456d4d has started.
2024-03-06 22:29:13 UTC Build linux-x86_64-release-cmake14 is running...
🟢 2024-03-06 22:31:32 UTC Build successful.

Copy link

github-actions bot commented Mar 6, 2024

2024-03-06 22:29:11 UTC Pre-commit check for 0456d4d has started.
2024-03-06 22:29:13 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-06 22:31:37 UTC Build successful.
2024-03-06 22:31:49 UTC Tests are running...
🔴 2024-03-06 23:45:09 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68258 57314 0 1 10918 25

@kunga kunga self-assigned this Mar 7, 2024
@kunga kunga force-pushed the forward-cache-simplify branch from 3ddc5ea to 57d566e Compare March 7, 2024 09:51
@kunga kunga requested a review from snaury March 7, 2024 10:02
Copy link

github-actions bot commented Mar 7, 2024

2024-03-07 10:20:23 UTC Pre-commit check for d1865bb has started.
2024-03-07 10:20:25 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-07 10:22:59 UTC Build successful.
2024-03-07 10:23:08 UTC Tests are running...
🔴 2024-03-07 12:02:56 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14957 14821 0 22 86 28

Copy link

github-actions bot commented Mar 7, 2024

2024-03-07 10:30:41 UTC Pre-commit check for d1865bb has started.
2024-03-07 10:30:43 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-07 10:32:39 UTC Build successful.
2024-03-07 10:32:49 UTC Tests are running...
🔴 2024-03-07 12:21:23 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68161 57219 0 2 10918 22

Copy link

github-actions bot commented Mar 7, 2024

2024-03-07 10:49:40 UTC Pre-commit check for d1865bb has started.
2024-03-07 10:49:42 UTC Build linux-x86_64-release-cmake14 is running...
🟢 2024-03-07 10:52:33 UTC Build successful.

@@ -58,8 +61,16 @@ namespace NFwd {
TCache() = delete;

TCache(const TPart* part, IPages* env, TGroupId groupId, const TIntrusiveConstPtr<TSlices>& bounds = nullptr)
: Index(part, env, groupId, 1, bounds)
{ }
: Index(MakeHolder<TPartIndexIt>(part, env, groupId)) // TODO: use CreateIndexIter(part, env, groupId)
Copy link
Member

Choose a reason for hiding this comment

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

На будущее: стоит подумать о том, чтобы не аллоцировать память, если можно не аллоцировать. Например можно выделять место под разные реализации через std::variant и сохранять указатель на интерфейс. Это к тому, что в будущем в CreateIndexIter стоит передавать ещё место под сторадж итератора.

@kunga kunga mentioned this pull request Mar 11, 2024
61 tasks
@kunga kunga merged commit e0a15dd into ydb-platform:main Mar 11, 2024
3 of 5 checks passed
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