1. 02 Mar, 2021 1 commit
    • Ahmad Samir's avatar
      Search plugin: fix crash with multiline regexp search · 98e22b50
      Ahmad Samir authored
      SearchDiskFiles::searchMultiLineRegExp() had two local static variables,
      it looks like after some recent changes, this causes a crash:
      
      0  QVector<int>::realloc (this=this@entry=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>, aalloc=<optimized out>, options=...,
      options@entry=...) at /usr/include/qt5/QtCore/qvector.h:719
      1  0x00007ffff005586d in QVector<int>::detach (this=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>)
      at /usr/include/qt5/QtCore/qvector.h:410
      2  QVector<int>::detach (this=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>) at /usr/include/qt5/QtCore/qvector.h:402
      3  QVector<int>::end (this=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>) at /usr/include/qt5/QtCore/qvector.h:223
      4  QVector<int>::clear (this=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>) at /usr/include/qt5/QtCore/qvector.h:449
      5  QVector<int>::clear (this=0x7ffff0079080 <SearchDiskFiles::searchMultiLineRegExp(QFile&)::lineStart>) at /usr/include/qt5/QtCore/qvector.h:445
      6  SearchDiskFiles::searchMultiLineRegExp (this=this@entry=0x555556fd3150, file=...) at /home/ahmad/kdesrc/applications/kate/addons/search/SearchDiskFiles.cpp:141
      7  0x00007ffff0055b1e in SearchDiskFiles::run (this=0x555556fd3150) at /home/ahmad/kdesrc/applications/kate/addons/search/SearchDiskFiles.cpp:51
      8  0x00007ffff5bc91f2 in QThreadPoolThread::run (this=0x555556fd33b0) at thread/qthreadpool.cpp:100
      9  0x00007ffff5bc5ef1 in QThreadPrivate::start (arg=0x555556fd33b0) at thread/qthread_unix.cpp:329
      10 0x00007ffff4bcc299 in start_thread () from /lib64/libpthread.so.0
      11 0x00007ffff5686af3 in clone () from /lib64/libc.so.6
      98e22b50
  2. 31 Jan, 2021 1 commit
  3. 30 Jan, 2021 3 commits
  4. 29 Jan, 2021 5 commits
    • Christoph Cullmann's avatar
      trivial heuristic to detect binary files · 664a10c4
      Christoph Cullmann authored
      Linus search in linux.git is now up from ~0.5 seconds 0.6, with mimedb we have >> 4-5 seconds
      664a10c4
    • Christoph Cullmann's avatar
      improve threading · f2d2ede7
      Christoph Cullmann authored
      1) use a worklist approach => better spreading of search work
      2) use idea thread count for number of runnables => higher parallelism
      3) avoid that the QRegularExpression is shared between threads (without this, e.g. 16 vs. 2 threads is no real difference)
      4) deactive qmimedb atm => creates QRegularExpression internally => leads to same locking hell :/
      
      with this, in a linux.git clone, searching for Linus takes:
      
      1) with 2 threads: ~4.5 seconds
      2) with 16 threads: ~0.5 seconds :P
      f2d2ede7
    • Alexander Lohnau's avatar
      clang-tidy: Force braces around statements · a9f8fe4f
      Alexander Lohnau authored
      If you want git blame to ignore formatting revisions run:
      git config blame.ignoreRevsFile .git-blame-ignore-revs
      a9f8fe4f
    • Alexander Lohnau's avatar
      Run clang-format · 621494eb
      Alexander Lohnau authored
      If you want git blame to ignore formatting revisions run:
      git config blame.ignoreRevsFile .git-blame-ignore-revs
      621494eb
    • Kåre Särs's avatar
      Remove unneeded double initialization · ae72e2ea
      Kåre Särs authored
      ae72e2ea
  5. 28 Jan, 2021 1 commit
  6. 23 Jan, 2021 1 commit
  7. 21 Jan, 2021 1 commit
  8. 17 Jan, 2021 1 commit
  9. 14 Jan, 2021 1 commit
    • Kåre Särs's avatar
      Move the calculation of the pre/post context to the search workers · 6de3698a
      Kåre Särs authored
      The logic behind that is that it potentially uses less memory, but the
      timing differences are negligible. Updating the match marks takes
      almost the same amount of time as the actual searching in an open file.
      
      The multi line post-context calculation is now also corrected.
      6de3698a
  10. 12 Jan, 2021 2 commits
  11. 02 Jan, 2021 2 commits
  12. 01 Jan, 2021 1 commit
  13. 20 Sep, 2020 1 commit
  14. 06 May, 2020 1 commit
    • Kåre Särs's avatar
      Fix crash if search command is used while searching · 69c962f2
      Kåre Särs authored
      Thread safety was only provided by disabling the UI and that breaks
      if we use the commands.
      
      Add terminateSearch functions that stop the search without sending
      signals and prevent already queued signals from adding matches in the
      matches tree.
      
      BUG: 419719
      69c962f2
  15. 06 Oct, 2019 1 commit
  16. 24 Sep, 2019 1 commit
  17. 16 Sep, 2019 1 commit
  18. 07 Sep, 2019 1 commit
  19. 06 Sep, 2019 1 commit
  20. 22 Aug, 2019 1 commit
  21. 28 Oct, 2018 2 commits
  22. 02 Feb, 2016 2 commits
  23. 22 Jun, 2015 1 commit
  24. 24 Jan, 2014 1 commit
  25. 21 Jan, 2014 1 commit
  26. 05 Jan, 2014 1 commit
  27. 01 Jan, 2014 1 commit
  28. 16 Oct, 2013 1 commit
  29. 21 Apr, 2013 1 commit
  30. 19 Apr, 2013 1 commit