--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 13, 2011 at 10:35:42AM +0900, Hiroshi Nakamura wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> (2011/11/13 1:58), Mike Perham wrote:
> > My use case: I want to use Rails in thread-safe mode in production
> > so I don't have to fork 20 Ruby processes to handle 20 concurrent
> > requests.  When developing, Rails auto loads classes on every
> > request.  This auto loading is critical to Rails' rapid development
> > cycle and there's no way I'm going to disable it.  Unfortunately
> > the current autoload behavior makes the development environment
> > incompatible with thread-safe mode.
>=20
> I should read ActiveSupport source code first but please allow me to
> post lazy question.  Does Rails development mode use autoload?  It is
> doing constant lookup by itself I guess, but I could be wrong, of course.

ActiveSupport doesn't use autoload for loading missing constants, but
supporting libraries definitely use autoloading things.  It's quite
possible that files loaded using the missing constant hooks contain
autoload directives.  :(

--=20
Aaron Patterson
http://tenderlovemaking.com/

--5vNYLRcllDrimb99
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJOv+mWAAoJEJUxcLy0/6/GkfIH/0Sjb5D6/skFZiaEX/atCzT/
fx3w2UoikXoAJwvZP5fxhZGpLccQ7QbYF9FpHotn/q5c6H/uUx0rPv8GQigJhszP
odtGPgcgPJKu6jfwbbG4yyH+1glvaiUaKP+zsMfD9I5b7vVtrkb8ajxboJliwYj9
FFIgw0KiK9ZbuP3RwoGdVz/BLJT0MeGnvOSz4UB+/tPI4LTBxymjYAfv4G8a1F0o
G+Lw2K9BPnNh/54Wt7v12MD1N+0LyogjiCSaGuPgpiRdXCDTU5SRy/tJcQb0is7Q
EAD/eQMLmUeE+zLfuJKv6JmYMhTAxQoYYb6f2BMmBfRawTtf6uDc6yybJZ5+/jo=
=r0cb
-----END PGP SIGNATURE-----

--5vNYLRcllDrimb99--

On Sun, Nov 13, 2011 at 10:35:42AM +0900, Hiroshi Nakamura wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> (2011/11/13 1:58), Mike Perham wrote:
> > My use case: I want to use Rails in thread-safe mode in production
> > so I don't have to fork 20 Ruby processes to handle 20 concurrent
> > requests.  When developing, Rails auto loads classes on every
> > request.  This auto loading is critical to Rails' rapid development
> > cycle and there's no way I'm going to disable it.  Unfortunately
> > the current autoload behavior makes the development environment
> > incompatible with thread-safe mode.
>=20
> I should read ActiveSupport source code first but please allow me to
> post lazy question.  Does Rails development mode use autoload?  It is
> doing constant lookup by itself I guess, but I could be wrong, of course.

ActiveSupport doesn't use autoload for loading missing constants, but
supporting libraries definitely use autoloading things.  It's quite
possible that files loaded using the missing constant hooks contain
autoload directives.  :(

--=20
Aaron Patterson
http://tenderlovemaking.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJOv+mWAAoJEJUxcLy0/6/GkfIH/0Sjb5D6/skFZiaEX/atCzT/
fx3w2UoikXoAJwvZP5fxhZGpLccQ7QbYF9FpHotn/q5c6H/uUx0rPv8GQigJhszP
odtGPgcgPJKu6jfwbbG4yyH+1glvaiUaKP+zsMfD9I5b7vVtrkb8ajxboJliwYj9
FFIgw0KiK9ZbuP3RwoGdVz/BLJT0MeGnvOSz4UB+/tPI4LTBxymjYAfv4G8a1F0o
G+Lw2K9BPnNh/54Wt7v12MD1N+0LyogjiCSaGuPgpiRdXCDTU5SRy/tJcQb0is7Q
EAD/eQMLmUeE+zLfuJKv6JmYMhTAxQoYYb6f2BMmBfRawTtf6uDc6yybJZ5+/jo=
=r0cb
-----END PGP SIGNATURE-----