[Mono-bugs] [Bug 79822][Nor] Changed - "new PrintDialog()" takes ~2 seconds on linux
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Nov 5 07:19:48 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by alex.olk at googlemail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79822
--- shadow/79822 2006-11-03 17:02:21.000000000 -0500
+++ shadow/79822.tmp.14385 2006-11-05 07:19:48.000000000 -0500
@@ -23,6 +23,25 @@
also, we make this call every time the PrintDialog code gets the list of
installed printers (i.e. every time "new PrintDialog()" is called).. not
sure if the cups library is caching the list, but we certainly aren't.
------- Additional Comments From toshok at ximian.com 2006-11-03 17:02 -------
linix? heh. linux.
+
+------- Additional Comments From alex.olk at googlemail.com 2006-11-05 07:19 -------
+"not sure if the cups library is caching the list"
+
+No, the cups lib is not caching the list. cupsGetDests reads the
+printers.conf file in /etc/cups to get information about the printers
+(and some other config files).
+
+Caching the printers in PrintingServicesUnix doesn't make sense,
+because there is no way to get information from cups if a printer is
+added or removed without a call to cupsGetDests.
+(Maybe a thread that checks cupsGetDests now and then would make sense).
+
+Let's say it this way: libcupsys2 is just braindead :)
+
+But nevertheless, I do not have the performance issues that you have
+(though, maybe that is because I do not have any network printers
+running). cups 1.2.4 that is.
+
More information about the mono-bugs
mailing list