From: SourceForge.net <no...@so...> - 2005-08-15 21:30:32
|
Bugs item #1260317, was opened at 2005-08-15 14:16 Message generated for change (Settings changed) made by kingb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505345&aid=1260317&group_id=63836 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Output: CreateDBAPI Group: v0.2.1 >Status: Closed >Resolution: Fixed Priority: 9 Submitted By: Brandon King (kingb) Assigned to: Brandon King (kingb) Summary: dbAPI warn() calls takes up ~30% of CPU time in dbAPI.py Initial Comment: I noticed that when using the profile module to check the number of calls and time of calls, the warn function takes up about ~30% of the CPU time. ---------------------------------------------------------------------- >Comment By: Brandon King (kingb) Date: 2005-08-15 14:30 Message: Logged In: YES user_id=552216 I took Diane's advice and added a global variable in the dbAPI module called INCLUDE_WARN_CALLS, which by default is set to false. Now almost all warn calls won't happen unless you import dbAPI setting dbAPI.INCLUDE_WARN_CALLS to True. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505345&aid=1260317&group_id=63836 |