From owner-freebsd-questions@freebsd.org Mon Jun 22 15:32:41 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9923C33032F for ; Mon, 22 Jun 2020 15:32:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49rD1h2nWFz3Vy2 for ; Mon, 22 Jun 2020 15:32:39 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.8.39.129]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1N1wdj-1iq5j246zh-012I3J; Mon, 22 Jun 2020 17:32:38 +0200 Date: Mon, 22 Jun 2020 17:32:37 +0200 From: Polytropon To: nikitastepanov113@yandex.ru Cc: freebsd-questions Subject: Re: Ports are faster than packages? Message-Id: <20200622173237.25699179.freebsd@edvax.de> In-Reply-To: <1592833182.722746222@f403.i.mail.ru> References: <1592833182.722746222@f403.i.mail.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:dH+vi5Ysv2+IDSEB9bL08rXLShR1t9PffH2t7/w7VzNIdiwvVvb Y4AUpE777InvHNthNsnXX6mB7+fdsYEQGJx3XN7CzX3lkhZeMRJkDFcdKcdtrUMH7Rfn8YI O9oYymfW+FK8XackVA+PV6C4TNz2oSF4txz8BZw6385LUH3ARcvv4R+pVxm9PHkg+agCfB0 2ExmqtfakUtxfZZ/tOcig== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fjzQashj/Uk=:gGxt9C06GQ2kUFmW7T84NX XibxkeswADsPgea1EQ6TvAAytHAE2NoNupkiyB9q4zh7jpe6pw3G6OnHeBNbMADwFYbHfrter 1p3Y8Jl2QJ6LLZKJcx5f3UCLwUCk9htVywQ4LJKS53myETc4HrlS12MHBQJjI+UhXi8W3D4eL 5gLWG7x5n2eA/RAw9icxSFuF8Z+XrHgtRtuABAe41FiGQcL+OP5K8mkWaY7GcwNTcQ5FAh+5R 2QAmt4DMqYIIVTZ8tN2xBCDz/hWu4zW4D55LEIFz4iR+4IvIEyLr5U772v7u0PlTayHDqZHFG 04Q39SEBJl4o9SmxQYWx63+n5gmEUhztqzQCGrROuTgfxYb/qS9e4zV8e2tfM43pB1hR+q0OM zsowj6aeGyzsTrm1xwcrY28vspkRBO+tt36HSJHx5w6ibS1ambF+Rq9vXFOI+ErQLAKfc/sBT qdqcM+5ei9UdwH1LA/7ZKUnwKAmCqnGwdhuF9BhunJkdmcs+N4YsZjYdcUnD/Si7dIt+1QIgj 1l9sGct5ItPUnLtD3CG/f4w3odSzt2sKZs1QghNn4vRsYqkLjZcfEFeS2P2fDFc8YrIBz10NB n7+GgpOYfWugTN66cctcem1p9TB+kA8lzG8KbRi/SVgLoNMoMaCE0weCEusbigxYXWkSOpikz P4LxC8HfA7x9IhA+QKXSl068J+mGF4J2E2sMagKQOfCb+b3EiRDgh9eYJPECDsLmnpuK3C2aK GNovLnGxUppk9UIzuevRKfD8PiTM41glkiy8lUnIShY1ZXBP+NOuIU+SSXGHVNB5C1FOmRt4t vLfVENAUMab+O/YUGIJ88PWvOdijtpl6Inqvy0pzmiPZLa10Xw= X-Rspamd-Queue-Id: 49rD1h2nWFz3Vy2 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.71 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[yandex.ru]; RECEIVED_SPAMHAUS_PBL(0.00)[178.8.39.129:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-0.87)[-0.866]; NEURAL_SPAM_SHORT(0.55)[0.550]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.62)[0.621]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.73:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.73:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 15:32:41 -0000 On Mon, 22 Jun 2020 16:39:42 +0300, nikitastepanov113@yandex.ru wrote: > > Ports are faster than packages? Yes. Which means no. :-) In general, the set of options with which the binary packages are built by the FreeBSD port building and delivering systems is to make sure the port works well in most possible cases. For edge cases, where different compile-time options might be needed, the user has no other choice than building from source. This enables two possibilities: 1. increasing features, which might increase resource usage and add further dependencies, or 2. reduce features, and apply platform-specific optimization, which can lead to faster programs. Especially the part of options that effect optimization has been a valuable help in the past, for example, when you wanted to run a program on a low-spec system, you could add optimization for that system, and the program would then run faster than the corresponding "canned" package. Technically, a port installed from source is nothing else than a binary package: The building process creates a package, the package is then installed. It doesn't matter to pkg if a package comes from a local source of from the FreeBSD server. _That_ doesn't make anything slower or faster. But as I said, tweaking the options to deviate from the standard building options _can_ have that effect, but it can also have the exact opposite effect. So the difference is not "port or package", because it's the same, the difference is what options have been in effect when building from source, no matter where that happens. You can find more information in chapter 4 of The FreeBSD Handbook, "nstalling Applications: Packages and Ports": https://www.freebsd.org/doc/handbook/ports.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...