From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Newsgroups: gmane.emacs.bugs Subject: bug#41242: Port feature/native-comp to Windows Date: Wed, 13 May 2020 17:01:59 -0300 Message-ID: References: <83o8qr62up.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31114"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41242@debbugs.gnu.org To: Eli Zaretskii , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 13 22:03:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYxaz-0007uY-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 22:03:13 +0200 Original-Received: from localhost ([::1]:38362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYxax-0000er-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 May 2020 16:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYxao-0000eg-HL for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 16:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYxao-0007On-8a for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 16:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYxao-0000JL-5e for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 16:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 May 2020 20:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41242 X-GNU-PR-Package: emacs Original-Received: via spool by 41242-submit@debbugs.gnu.org id=B41242.15894001391139 (code B ref 41242); Wed, 13 May 2020 20:03:02 +0000 Original-Received: (at 41242) by debbugs.gnu.org; 13 May 2020 20:02:19 +0000 Original-Received: from localhost ([127.0.0.1]:59667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYxa7-0000IJ-29 for submit@debbugs.gnu.org; Wed, 13 May 2020 16:02:19 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:43782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYxa5-0000I7-Nt for 41242@debbugs.gnu.org; Wed, 13 May 2020 16:02:18 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id i22so5944665oik.10 for <41242@debbugs.gnu.org>; Wed, 13 May 2020 13:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Zh3n5M8sbscu+0BCETWzKIW/Dc4I/m0PuXttr712oCk=; b=lM7u/RBbsm933sdju1M6CJTIFbOyrjbWOfgMAgi4eWGJXm6CRnxXVAokfo+ndAEw2q 90VN5eiaFpF/+ktMkL0KZFOVytcUtFTJWwnphtG+sLki6fNFBQgDxIKrGtIM1Z7CW2S/ Q0bhkWgWRqHAD3VV+QLrgXbvVceFP71GRk2JUtm9zUKIjisfqXuV2Io+OJrGQvesxAia jDLutKUfxVwUT73Jba1S3BRvcw6W+a1It5EDEl8Khg64bt/q8ruWbs6YAQKgsdkepu8r Aow88ji1HKmJsr5ge324ef/pRNCaB7ogx9pjkUQPqALn4ZdETSu31wgQNNcpdLyT5YCP 57cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Zh3n5M8sbscu+0BCETWzKIW/Dc4I/m0PuXttr712oCk=; b=DErFRubp9B1u2sqyG/cXTY3NrUNN//iYTHDfcLS8rAUDlqZirixcPj6x/Erb7zD8nw 6IZPGhyCvKTtOdljq3cSZp+MfoKZpyFntFkxXmlFsH4szHSwYctyYZca3gXuXLWapn9O 1l1Qk1R2l7DILs1bvTC0iy4jnlugtrYWpL57rl2NDFn8qsDzbagt5wo0QXeeHl7UauU1 GEV12wN8O7xU8iPnpmKcFqnrTeQr4tBz+srNhEDai5r3avFl4om0b3LUPAHIbMJetyNq 7Zp4YrrGPkUi+mUNTnbcrPap2EoA1VTNXRkwvpYIZ4uaOaITf4KmkjkVJDRBsldF1PPs JILA== X-Gm-Message-State: AGi0PubcdicG50bGE8uouxb99uaAIcjeGgBi37057EX5iEcImJWXLPIR Vap7HVXS+Km+H8xsMdCWrTfqsKB18CjQwUSGC6M= X-Google-Smtp-Source: APiQypKNeFqgipf8TV9IwV1daHJOAGMTvZT9DdcbkKbzwotrRsqMuhuIN0Byg8Zd9JewRPmmrOZzi2cXu8d+a+MwXjM= X-Received: by 2002:a05:6808:98f:: with SMTP id a15mr28570416oic.65.1589400131847; Wed, 13 May 2020 13:02:11 -0700 (PDT) In-Reply-To: <83o8qr62up.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180181 Archived-At: > Did you manage to understand why? How many bytes of *.eln files does > Emacs load while autoloading Helm, for example? I don't know how to measure that, sorry. AFAIK Emacs just maps many subr to= the correct function pointers and the OS takes care of loading the appropriate = code on page faults. My guess is that autoloading triggers a long series of eln loading operatio= ns, that, as a group, are very expensive. Do you know what profiler I could use to check what Emacs is doing? > Is that the handle from LoadLibrary? If so, cannot we close the > handle once the .eln file is loaded? Exactly. No, calling FreeLibrary would unload the file from the address spa= ce. El mi=C3=A9., 13 may. 2020 a las 16:40, Eli Zaretskii () escr= ibi=C3=B3: > > > From: Nicolas B=C3=A9rtolo > > Date: Wed, 13 May 2020 16:26:57 -0300 > > > > * `package-delete` fails because it tries to delete the .eln file via > > `delete-file`. This is impossible in Windows because it's generally i= mpossible > > to delete files that have an open HANDLE in the system. > > Is that the handle from LoadLibrary? If so, cannot we close the > handle once the .eln file is loaded? > > Thanks.