From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Overlay mechanic improvements Date: Sat, 20 Sep 2014 15:49:43 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411242617 1149 80.91.229.3 (20 Sep 2014 19:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2014 19:50:17 +0000 (UTC) Cc: vekazanov@gmail.com, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 20 21:50:09 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XVQfZ-0002EX-Hd for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2014 21:50:09 +0200 Original-Received: from localhost ([::1]:35850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVQfZ-0003Wy-7M for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2014 15:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVQfP-0003TH-G8 for emacs-devel@gnu.org; Sat, 20 Sep 2014 15:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVQfH-00047A-MJ for emacs-devel@gnu.org; Sat, 20 Sep 2014 15:49:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVQfH-00046T-If; Sat, 20 Sep 2014 15:49:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEVg8UEAsOJhIUGA0kiAzSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEVg8UEAsOJhIUGA0kiAzSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90406127" Original-Received: from 69-165-145-6.dsl.teksavvy.com (HELO pastel.home) ([69.165.145.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Sep 2014 15:49:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0E30462F79; Sat, 20 Sep 2014 15:49:44 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sat, 20 Sep 2014 09:19:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174591 Archived-At: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I don't see that it makes sense to store overlays like text properties. > The existing data structure is fine for overlays used as they are intended > to be used. The data structure used is too naive, with an algorithmic complexity that can be problematic. Moving it to a balanced binary tree with turn O(N^2) complexity into O(N log N). Stefan