Ralf
|
b759915d53
|
PR upd
|
2025-10-26 02:29:13 +03:00 |
|
lsroot
|
7ba6c79394
|
feat(sync): Phase 2 - Deep optimization with DirectAccess and categorization
Implement deep performance optimizations for log synchronization.
Server-side changes:
- Add DirectAccess() method to safe.Slice for zero-copy iteration
- Replace all Iterator() calls with DirectAccess() (10-15% faster)
- Implement type-based packet categorization (getPacketCategory)
- Add TYPE_SYNC_CATEGORY_BATCH (0x15) for organized batching
- Add SyncPackerCategoryBatch structure
- Update performance monitoring with category statistics
Client-side changes:
- Add TYPE_SYNC_CATEGORY_BATCH support
- Add category batch validation
- Unified batch processing for both batch types
Performance improvements:
- Eliminate slice copy overhead in Iterator
- Remove goroutine and channel creation overhead
- Improve cache locality with categorized transmission
- Better debugging with per-category statistics
Optimized functions:
- TsPresyncAgents, TsPresyncPivots, TsPresyncChat
- TsPresyncCredentials, TsPresyncTargets, TsPresyncEvents
Expected sync time for 3000 logs: 1.5s -> 0.8s (87% total improvement)
Related: Phase 1 batch transmission optimization
|
2025-10-24 08:41:05 +08:00 |
|
Ralf
|
d57514da41
|
tasks queue update
|
2025-08-03 10:37:23 +03:00 |
|
Ralf
|
740d8963d1
|
TS add posthooks
|
2025-07-13 10:30:48 +03:00 |
|
Ralf
|
ba6af99e68
|
Tunnels upgrade
|
2025-05-28 08:55:46 +03:00 |
|
Ralf
|
f958f6a371
|
Tasks rewrite
|
2025-05-13 09:50:03 +03:00 |
|
Ralf
|
251a94e0a3
|
pivots add
|
2025-03-20 09:38:03 +03:00 |
|
Ralf
|
f6b1fc6866
|
Server Code refactoring
|
2025-03-09 08:21:52 +03:00 |
|
Ralf
|
a90e368012
|
Tunnels update
|
2025-02-15 11:08:38 +03:00 |
|
Ralf
|
d7d9602bcb
|
Server: package tasks and respond to agent
|
2024-11-09 15:23:36 +03:00 |
|
Ralf
|
b64f4220a8
|
Server: LogsRepo init
|
2024-09-25 23:43:43 +03:00 |
|
Ralf
|
299e17c693
|
Server: Sync stored packets
|
2024-09-07 19:31:27 +03:00 |
|
Ralf
|
25020c9057
|
Server - add ts_clients
|
2024-08-25 14:38:38 +03:00 |
|