This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, libfortran] PR 48587 Newunit allocator
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Oct 2016 11:09:56 +0200
- Subject: Re: [PATCH, libfortran] PR 48587 Newunit allocator
- Authentication-results: sourceware.org; auth=none
- References: <1476371788-6740-1-git-send-email-blomqvist.janne@gmail.com>
On Thu, Oct 13, 2016 at 5:16 PM, Janne Blomqvist wrote:
> +static bool *newunits;
You could make this a bitmap (like sbitmap). A bit more code but makes
a potentially quadratic search (when opening many units) less time
consuming.
Ciao!
Steven