After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722824 - Search doesn't work on long files
Search doesn't work on long files
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: search and replace
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-23 11:52 UTC by Username
Modified: 2014-01-26 21:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Username 2014-01-23 11:52:53 UTC
Steps to reproduce:
- Turn on line breaks.
- Open a file with one 300KiB line.
- Open `Search` box and enter any char existing in the file.

Expected:
- Search result.

Seen:
- Hang.
- Several minutes didn't help.

It looks like you're using something with O(N^2) asymptotics for search (strlen in for loop condition?)
Comment 1 Sébastien Wilmet 2014-01-24 17:48:40 UTC
If very long lines isn't well supported by GtkTextView, why do you think it will work for the search and replace?
Comment 2 Username 2014-01-26 21:22:23 UTC
Please, follow this into GtkTextView bugtracker.