⚡ Bolt: Zaman sınıfı XML parsing performans iyileştirmesi#17
⚡ Bolt: Zaman sınıfı XML parsing performans iyileştirmesi#17gitmuhammedalbayrak wants to merge 1 commit into
Conversation
Dosya okuma (I/O) ve XML parsing işlemi ağır olduğu için, uygulamanın yaşam döngüsü boyunca bir kez okunması yeterli olan `Vakitler.xml` dosyasının okunması `static` değişkenler ve lazy initialization kullanılarak optimize edildi. - `pugi::xml_document dosya` ve `pugi::xml_node sehir` static yapıldı. - `vkt_h_v_d` içerisinde load_file metodunun bir defa çağrılması sağlandı. - Testlerde oluşturulan her nesne başına ~%73 hızlanma (0.37s -> 0.10s) elde edildi. - Bolt günlüğüne performans öğrenimi eklendi. Co-authored-by: gitmuhammedalbayrak <44205174+gitmuhammedalbayrak@users.noreply.github.com>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 Ne:
zamansınıfında XML dosyasının (Vakitler.xml) okunması işlemi lazy loading ve static üyeler ile optimize edildi.🎯 Neden:
pugi::xml_document::load_fileI/O ve parsing işlemi ağır.zamansınıfı her yaratıldığında gereksiz yere bu dosya tekrar okunuyordu.📊 Etki: Nesne oluşturma performansında büyük oranda iyileşme (1000 iterasyonluk bir döngüde yaklaşık ~%73 oranında hızlanma - 0.37s'den 0.10s'ye düştü).
🔬 Ölçüm:
tests/test_zaman.cppdosyası ile testler başarıyla çalışıyor ve benchmark metrikleri ile performans artışı doğrulandı.PR created automatically by Jules for task 15282867380520145701 started by @gitmuhammedalbayrak