Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2020 14:09:46 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        0mp@FreeBSD.org
Cc:        timp87@gmail.com, freebsd-ports@freebsd.org, manu@FreeBSD.org
Subject:   Re: set_rcvar() function use?
Message-ID:  <20200704.140946.1661194655626577558.hrs@FreeBSD.org>
In-Reply-To: <34921b6e-ce3a-13e4-0cc1-3ca47b5a9cef@FreeBSD.org>
References:  <CAAoTqfss_-=N4EGd=XKDA%2BtzqvK5YZ7Ci6QJZvvip2xc64fYrw@mail.gmail.com> <20200703.035403.856368268140192104.hrs@FreeBSD.org> <34921b6e-ce3a-13e4-0cc1-3ca47b5a9cef@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sat_Jul__4_14_09_46_2020_621)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mateusz Piotrowski <0mp@FreeBSD.org> wrote
  in <34921b6e-ce3a-13e4-0cc1-3ca47b5a9cef@FreeBSD.org>:

0m> >  I am planning to revisit the multi-instance support shortly because I
0m> >  am using it for a long time and I think it is useful.  While I did
0m> >  not receive a strong objection to it so far, it is also true that
0m> >  adopting the set_rcvar() style was not discussed properly.  I would
0m> >  like more feedback before moving forward.
0m>
0m> AFAIR, manu@ was concerned at some point that using set_rcvar() extensively
0m> might result in slowdowns on embedded systems.

 A discussion in the past about the performance was an additional
 fork(2) when using set_rcvar() for rc_var=`set_rcvar`.  The use case
 of the resurrected one is "set_rcvar A B" as a replacement of "A=B",
 and it does not involve a subshell.

 I agree that the performance perspective should also be discussed,
 though.  The current rc.subr and network.subr already have more
 expensive operations, so we might want to gather profiling
 information.

-- Hiroki

----Security_Multipart(Sat_Jul__4_14_09_46_2020_621)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iMoEABMKAC4WIQRsDSNTJ8+Ax5Ae/dLbsH3Gbx9zfwUCXwAPGhAcaHJzQGZyZWVi
c2Qub3JnAAoJENuwfcZvH3N/zxkCCQH66bdWDZ2aLTx4xHzTtw7T6wWNMtatuVoH
qAngO26Vgpa+ZScyAmdcsSqEKVmXPhdd1B0VHL7yUJvj+oSY1vCMRgIJAX/LMSyn
+7GFU9DayqcQ5O5M36pUnDTuEexePTrhJaozq0Pe82M2U7eY7CvGcuS5YTwEzDBF
nTbxXHWh764R2+jO
=e0Wo
-----END PGP SIGNATURE-----

----Security_Multipart(Sat_Jul__4_14_09_46_2020_621)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200704.140946.1661194655626577558.hrs>