From owner-freebsd-hackers Fri Mar 29 19: 0:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 08FBD37B419; Fri, 29 Mar 2002 19:00:18 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id A9906BD5E; Fri, 29 Mar 2002 19:00:17 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id TAA10857; Fri, 29 Mar 2002 19:00:17 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g2U2wi516566; Fri, 29 Mar 2002 18:58:44 -0800 (PST) (envelope-from swear@blarg.net) To: Terry Lambert Cc: Ilia Chipitsine , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: perfomance and regular expressions References: <3CA4FC84.BAB5B698@mindspring.com> From: swear@blarg.net (Gary W. Swearingen) Date: 29 Mar 2002 18:58:44 -0800 In-Reply-To: <3CA4FC84.BAB5B698@mindspring.com> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert writes: > That said, if you feel a moral imperative to save and load > precompiled regular expressions. you can do it by serializing > the structure contents to disk, and then reading them back in. It'd be best to use Terry's single process idea, but if I was going to do the precomiled thing, I'd consider finding a way to get those structures translated into my programming language and compile it into the binary. (And there may be some way to leave it binary, depending on your language.) But with memory and disks being what they are today, this scheme might not be worth the trouble. Anybody know any languages that allow compile-time (and/or link-time) computations using (most of?) the same language? I've often desired the feature. (I suppose some preprocessor like m4 could handle some of it.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message