From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#14776: 24.3.50; [PATCH] parse-time-string performance Date: Thu, 04 Jul 2013 22:31:35 +0200 Message-ID: References: <87sizwxwu2.fsf@hochschule-trier.de> <87li5m1geu.fsf@hochschule-trier.de> <87k3l6jedt.fsf@hochschule-trier.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372969929 30686 80.91.229.3 (4 Jul 2013 20:32:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 20:32:09 +0000 (UTC) Cc: 14776@debbugs.gnu.org To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 22:32:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UuqCI-0007JN-Hr for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 22:32:10 +0200 Original-Received: from localhost ([::1]:48460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqCI-0002l5-66 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 16:32:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqCC-0002k4-V6 for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 16:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuqCA-0007Nz-Iz for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 16:32:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuqCA-0007Nv-GK for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 16:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UuqC9-0006k3-Sf for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 16:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2013 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14776 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14776-submit@debbugs.gnu.org id=B14776.137296991125893 (code B ref 14776); Thu, 04 Jul 2013 20:32:01 +0000 Original-Received: (at 14776) by debbugs.gnu.org; 4 Jul 2013 20:31:51 +0000 Original-Received: from localhost ([127.0.0.1]:58039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuqBz-0006jY-5a for submit@debbugs.gnu.org; Thu, 04 Jul 2013 16:31:51 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:41133) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuqBv-0006jN-Gj for 14776@debbugs.gnu.org; Thu, 04 Jul 2013 16:31:49 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UuqBj-0004U2-Pb; Thu, 04 Jul 2013 22:31:35 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+9K31un91Oin80I/C dFIkDAbknmr+4Zq1HuKCAAACYUlEQVQ4jVXTza/iIBAAcNz38np9iGnPS/CdxTHlbEXeeRu7Z2lZ zppu5N/fGVo/dkzUzE9msAyMTVGYMSUw6R4wpxMzmDQPGO9QMFONpoIH6Dk/ss0njNWjFvAJGCCY hRnnYjADu4wJ4ZZ0gqmDvoOAzfmzKqpxBl5OlfQ+lOJ8/gANYAxgpUjw9m4xQnkWbxUmIYEu45SX aymtLc/YIwcvA8KHbTqM1jZhuOa8noHy6zVS482U55FggXUo1p364gPWwXy0tCnKdS2+tTLyHBOw DF27xi2oq8d8GUOGJkPX4Yd1XhPY/4D28A38Cf0T2iHe4cLYVso7dCpvKkwrfrzAr7l3XvH+AtKL Jyxe4DRq/BcECWutntDuoXwCK8J9Xy2Aj24uxRbA/s5yKr2Lc48Ew+aSlhP8htoGOjeWCnH9vIo0 5iWnA3CLTQhuaat3w75UBF+OO/y5axBE2lbNYK2iZ49H7/p9bwm+U2+aqBrZdHjwkrvg+7xdAhtU L2UrpVJO2XJJK0yZtlz6L6voeAl611NzqM1u1wQ1gbVxv+JLKgWJQ9TW4Wq7VtatuOAr+h84+eWe l56HgOCiw8ce4gQ3qCPH7/Z4ckMeRAIBUONL6MDjsY0iXw6aEi5oxLWpufZ/Wk/XAGeagBOIVF8h LruDyRdwBlwK+GTq2HeHdGHFiGdlWSTBO2HSDqf+p0FIeLoZiLACPpTuZMZLkSCDx2kVdI8J2kEw Rt0RMFAQjm2LB2ISNsHuGaLnkMZjnsTN5RUiF+mWz1ZWjGo9wAuzI5Dym6YJeGA4kHnJDOpAMPLw D2asESI9iCYYAAAAAElFTkSuQmCC X-Now-Playing: Heidi Berry's _Heidi Berry_: "The Moon and the Sun" X-Hashcash: 1:23:130704:politza@hochschule-trier.de::ZblsFjIhoo/2s3s/:00000000000000000000000000000000001ugF X-Hashcash: 1:23:130704:14776@debbugs.gnu.org::WPkdCtN/Lwr1DLnM:00000000000000000000000000000000000000005dA0 In-Reply-To: <87k3l6jedt.fsf@hochschule-trier.de> (Andreas Politz's message of "Thu, 04 Jul 2013 21:47:58 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1UuqBj-0004U2-Pb MailScanner-NULL-Check: 1373574696.40137@xmFFfJsFGCotavDxn29YWw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75915 Archived-At: Andreas Politz writes: > Like strptime ? Or parse-datetime: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/parse-datetime.y > Probably not worth it, since it doesn't seem to be a bottleneck, > contrary to what I was suggesting. Or are there other reasons ? It's not much of a bottleneck, no: (benchmark-elapse (dotimes (i 10000) (parse-time-string "Thu, 04 Jul 2013 20:06:00 +0200"))) => 1.120856647 But sorting a summary buffer of 5K messages on Date (which some people do) might get a performance boost. But I was thinking that it might be more likely that parse-datetime parses more date strings correctly than the version in parse-time.el. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/