Skip to content

⚡ Bolt: td_to_vakt Metot Optimizasyonu#28

Open
gitmuhammedalbayrak wants to merge 1 commit into
masterfrom
bolt-optimize-td-to-vakt-5887305849602146965
Open

⚡ Bolt: td_to_vakt Metot Optimizasyonu#28
gitmuhammedalbayrak wants to merge 1 commit into
masterfrom
bolt-optimize-td-to-vakt-5887305849602146965

Conversation

@gitmuhammedalbayrak
Copy link
Copy Markdown
Member

💡 Ne yapıldı: zaman::td_to_vakt fonksiyonundaki std::to_string kullanımı ve string birleştirme (+) işlemleri kaldırılarak sabit boyutlu (char buf[6]) manuel yığın tabanlı bir karakter arabelleği ile doğrudan ASCII aritmetiğine dayanan bir algoritma eklendi. Ayrıca önceki bir birleştirme çakışmasından kaynaklanan XML düğümü bellek önbelleğe alma mantığındaki bir hata güvenle çözüldü.

🎯 Neden yapıldı: td_to_vakt çok sık çağrılan sıcak yollardan (hot-path) biridir. Her çağrıda std::to_string üzerinden fazladan yığın tahsisatı (heap allocation) yapılması önemli bir performans darboğazı oluşturmaktaydı.

📊 Etki: ~%70 performans artışı bekleniyor.

🔬 Ölçüm: Derlemeden sonra testlerin make && g++ -I "./include" tests/test_zaman.cpp src/src-class/Zaman.cpp include/packages/pugixml-1.9/src/pugixml.cpp -o run_tests && ./run_tests kullanılarak testler geçirildiğini ve 100.000 döngü kullanılarak yürütülen test_perf.cpp yürütme süresinin bariz şekilde azaldığını doğrulayabilirsiniz.


PR created automatically by Jules for task 5887305849602146965 started by @gitmuhammedalbayrak

…rma darboğazı giderildi

Co-authored-by: gitmuhammedalbayrak <44205174+gitmuhammedalbayrak@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant