From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Entering emojis Date: Fri, 29 Oct 2021 22:57:21 +0200 Message-ID: <87cznntuq6.fsf@gnus.org> References: <87cznths5j.fsf@gnus.org> <87wnlx5rd4.fsf@gnus.org> <837ddxtimp.fsf@gnu.org> <87h7d15mvi.fsf@gnus.org> <831r45tgu3.fsf@gnu.org> <87cznp5k6p.fsf@gnus.org> <83tuh1rvjt.fsf@gnu.org> <87czno3jmp.fsf@gnus.org> <83bl38s7t5.fsf@gnu.org> <871r440zj1.fsf@gnus.org> <83mtmsq7q1.fsf@gnu.org> <87r1c4x86a.fsf@gnus.org> <83ilxgq6k3.fsf@gnu.org> <87ilxfyl6w.fsf@gnus.org> <87a6irykbn.fsf@gnus.org> <83a6irrfam.fsf@gnu.org> <875ytfx014.fsf@gnus.org> <83v91fpuwy.fsf@gnu.org> <87fssjvgfj.fsf@gnus.org> <83r1c3pqa5.fsf@gnu.org> <87h7cztvdg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21666"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: stefankangas@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 29 23:36:51 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mgZYR-0005Qm-2f for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 23:36:51 +0200 Original-Received: from localhost ([::1]:38444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgZYP-0003OJ-VA for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 17:36:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgYwO-0006en-Ka for emacs-devel@gnu.org; Fri, 29 Oct 2021 16:57:32 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:40610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgYwJ-00035k-RW; Fri, 29 Oct 2021 16:57:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C64lu6h9R8eIfloLzqVnvLmrEHlwpW9JEYn4rZLgjMw=; b=U+XhQvHaF1I3Ij9+qNZnJBepLX 2J9f1vg5H057keOgtu0kfZPhR0vgDe8r5yVESQ95vm4Krkn6+fy7Rxpz3sLVSiOtXTu7rtn9Ai/u3 wH9VGgRGNkkpea3TTTATL9sZ6IVhhb5rR4U79vw2/Q3sL87Tpmpr3tupQ7Za/VhMF3IA=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgYwD-0003Qw-TY; Fri, 29 Oct 2021 22:57:24 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEU7NTFDOzMYFxdO RTlqXUqeim7////s1RqTAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UKHRQmGKkDp6wAAAGtSURBVDjL dZRNjoMwDIVtSPcJ9AA9AkzSPYiwn0rk/lcZ/8SBIo0XbfHHs014LmDwEAJgoPDooUYHYL8FwAVQ YOD0XREugU3DCt/yvr8qRDIq6e+lIsccwtNbrY7nHKPFk6A3IOlMscWYCKABuky5RpKCCvrY0jm/ tys4yZaoXJA2BDRdSqHPfZPpFHB6p3w56Dvnb1A07mCv+XLsMjS3F1BaEMgG3AUcfbZaDFqlsk6J QbyD4/lJWktLNcHPHvTMFKggl2N9FMgXheSXbv+44nmULzABPH77KXp3cClv4AAGENKigC4HSHRG /NIeC8w4KyA7dZBXfckEiDvpTo8+wLGw4wDfC7vNyaFoqYl80k99IuUYnvwcs2cgViojIE2GEWVa AW5LedtncAugn1GOncxFCrYO3UJKPM2OA/wTA93GHgW2BncLzbs9iqcjjRL8qSDAPgrXXAUuozre 38GKdanOdVQw6cbynn1N5WQ5bdca7Pj8anacL506eNnajmL08zletmvjLFvjG7DdjOe6S/OX1dG9 PYH2jqfI11X7gAnq/bbOi/0DaM7G6v4A8wB8azD/GisAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEt MTAtMjlUMjA6Mzg6MjQrMDA6MDCqpWZbAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEwLTI5VDIw OjM4OjI0KzAwOjAw2/je5wAAAABJRU5ErkJggg== X-Now-Playing: Joni Mitchell's _Amchitka (2)_: "A Case Of You" In-Reply-To: <87h7cztvdg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Oct 2021 22:43:23 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278247 Archived-At: --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > I'll be back tomorrow with further results. :-/ Hey, it's almost tomorrow. I made emoji.el spit out the actual code points it's checking, and I've made a big micro test from that (included below). And indeed, for that set of code points, internal-char-font and font-get-glyphs take almost exactly the same time, which is very odd. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=ftest.el Content-Transfer-Encoding: quoted-printable (benchmark-run 1 (let ((font (car (internal-char-font nil #x1f300)))) (dolist (i '( 127988 127988 127988 127487 127487 127487 127486 127486 127485 127484 127484 127483 127483 127483 127483 127483 127483 127483 127482 127482 127482 127482 127482 127482 127482 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127481 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127480 127479 127479 127479 127479 127479 127478 127477 127477 127477 127477 127477 127477 127477 127477 127477 127477 127477 127477 127477 127477 127476 127475 127475 127475 127475 127475 127475 127475 127475 127475 127475 127475 127475 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127474 127473 127473 127473 127473 127473 127473 127473 127473 127473 127473 127473 127472 127472 127472 127472 127472 127472 127472 127472 127472 127472 127472 127471 127471 127471 127471 127470 127470 127470 127470 127470 127470 127470 127470 127470 127470 127470 127469 127469 127469 127469 127469 127469 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127468 127467 127467 127467 127467 127467 127467 127466 127466 127466 127466 127466 127466 127466 127466 127466 127465 127465 127465 127465 127465 127465 127465 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127464 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127463 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127462 127988 127987 127987 127987 127988 127884 128681 127937 128306 128307 128280 128160 128315 128314 128313 128312 128311 128310 9643 9642 9725 9726 9723 9724 11036 11035 129003 129002 128998 129001 129000 128999 128997 9898 9899 128996 128995 128309 128994 128993 128992 128308 127541 127546 12953 12951 127539 127540 127544 127569 127538 127514 127545 127568 127535 127542 127543 127490 127489 127386 127385 127384 127359 127383 127358 127382 127381 9410 127380 8505 127379 127378 127377 127345 127374 127344 128292 128291 128290 128289 128288 8482 174 169 10055 10036 10035 12349 10175 10160 10062 10060 10004 9745 9989 11093 128304 128219 128305 9884 9851 9877 128178 128177 12336 10071 10069 10068 10067 8265 8252 9854 129008 10135 10134 10133 10006 9895 9794 9792 128244 128243 128246 128262 128261 127910 9167 9210 9209 9208 9196 128317 9195 128316 9198 9194 9664 9199 9197 9193 9654 128258 128257 128256 9934 9811 9810 9809 9808 9807 9806 9805 9804 9803 9802 9801 9800 128303 128334 9774 9770 9766 10013 9775 9784 10017 128329 9883 128720 128285 128284 128283 128282 128281 128260 128259 10549 10548 8618 8617 8596 8597 8598 11013 8601 11015 8600 10145 8599 11014 9763 9762 128286 128245 128695 128689 128687 128685 128691 128683 9940 128696 9888 128709 128708 128707 128706 128702 128700 128699 128698 128697 9855 128688 128686 127975 129706 129703 128511 9905 129702 9904 128684 128722 129519 129533 129701 129767 129532 129699 129531 129530 129529 129527 129524 129682 129700 128705 128703 129696 128701 129681 128715 128719 129695 129694 128727 128682 129659 129658 129660 129657 128138 129656 128137 128225 128301 128300 129516 129515 129514 9879 129692 129522 129520 129693 9939 128279 129455 9878 128476 9881 128297 129691 128295 129690 128737 127993 129667 128299 9876 128481 128736 9874 9935 129683 128296 128477 128273 128272 128271 128275 128274 128465 128452 128451 9986 128208 128207 128391 128206 128205 128204 128203 128202 128201 128200 128199 128467 128466 128198 128197 128450 128194 128193 128188 128221 128397 128396 128394 128395 10002 9999 128499 128238 128237 128236 128234 128235 128230 128229 128228 128233 128232 128231 9993 128185 129534 128179 128184 128183 128182 128181 128180 129689 128176 127991 128278 128209 128478 128240 128196 128220 128195 128210 128211 128218 128217 128216 128215 128214 128213 128212 129684 127982 128294 128161 128367 128270 128269 128252 128249 128248 128247 128250 127916 128253 127902 127909 129518 128192 128191 128190 128189 128434 128433 9000 128424 128421 128187 128268 129707 128267 128224 128223 128222 9742 128242 128241 129688 129345 129685 127931 127930 127929 127928 129687 127927 128251 127911 127908 127899 127898 127897 127926 127925 127932 128277 128276 128239 128227 128226 128266 128265 128264 128263 128142 128141 128132 128255 9937 129686 129506 127891 127913 128082 128081 128098 129648 128097 128096 129407 129406 128095 128094 129652 127890 128717 128093 128092 128091 128090 128089 129651 129650 129649 129403 128088 128087 129510 129509 129508 129507 128086 128085 128084 129466 129404 129405 128374 128083 129698 129526 129697 129525 127912 128444 127917 127924 126980 127183 9823 9827 9830 9829 9824 129670 129705 129669 129528 129513 127922 127920 128377 127918 129708 129535 129668 128302 127921 129665 129664 127919 129356 128759 127935 127933 129343 127907 9976 9971 129349 129355 129354 127992 127955 129357 127954 127953 127951 127923 129359 127934 127945 127944 127952 127936 129358 9918 9917 129353 129352 129351 127941 127942 127894 127915 127903 127895 127873 127872 129511 127889 127888 127887 127886 127885 127883 127882 127881 127880 10024 129512 127879 127878 127876 127875 127754 128167 128293 9732 9924 9731 10052 9889 9969 9748 9730 127746 127752 127744 127788 127787 127786 127785 127784 127783 127782 127781 127780 9928 9925 9729 127756 127776 127775 11088 129680 127774 127773 9728 127777 127772 127771 127770 127769 127768 127767 127766 127765 127764 127763 127762 127761 128358 128346 128357 128345 128356 128344 128355 128343 128354 128342 128353 128341 128352 128340 128351 128339 128350 128338 128349 128337 128348 128336 128359 128347 128368 9202 9201 9200 8986 9203 8987 129523 128718 128760 128640 128752 128673 128672 128671 128641 128186 129666 128748 128747 128745 9992 128674 128741 9972 128755 128676 128758 9973 128735 9875 128679 128721 128678 128677 128680 128734 9981 128738 128740 128739 128655 128764 128761 128756 128690 128762 129468 129469 128757 127949 127950 128668 128667 128666 128763 128665 128664 128663 128662 128661 128660 128659 128658 128657 128656 128654 128653 128652 128651 128670 128669 128650 128649 128648 128647 128646 128645 128644 128643 128642 127914 128136 127906 127905 128733 127904 9832 127753 127751 127750 127749 127748 127961 127747 127745 9978 9970 128331 9961 128333 128725 128332 9962 128509 128508 128146 127984 127983 127981 127980 127979 127978 127977 127976 127974 127973 127972 127971 127970 127969 127968 127962 127960 128726 129717 129704 129521 127959 127963 127967 127966 127965 127964 127958 127957 128507 127755 9968 127956 129517 128510 128506 127760 127759 127758 127757 127994 129753 128298 129348 127860 127869 129378 129482 129481 129475 129483 129380 129751 129347 129346 127867 127866 127865 127864 127863 127870 127862 127861 129750 9749 129371 127868 127855 127854 127853 127852 127851 129383 129473 127856 127874 127850 127849 127848 127847 127846 129450 129425 129424 129438 129408 129377 129376 129375 127841 129390 127845 127844 127843 127842 127840 127837 127836 127835 127834 127833 127832 127857 129387 129474 129480 127871 129367 129379 129749 127858 129368 127859 129370 129478 129369 129748 127791 127790 129386 127789 127829 127839 127828 129363 129385 127831 127830 129472 129479 129374 129391 129384 129747 129366 129360 127838 127792 129752 129372 127812 129477 129476 129382 129388 129362 129745 127798 127805 129365 129364 127814 129361 129381 129746 127813 129373 129744 127827 127826 127825 127824 127823 127822 129389 127821 127820 127819 127818 127817 127816 127815 129722 129721 127811 127810 127809 127808 9752 127807 127806 127797 127796 127795 127794 129716 127793 127799 127804 127803 127802 129344 127801 127989 129719 128174 127800 128144 129440 129713 129712 129439 129410 128376 128375 129715 129431 128030 129714 128029 128028 128027 129419 128012 129720 128026 128025 129416 128033 128032 128031 129453 128044 128011 128051 129430 129429 128009 128050 128013 129422 128034 128010 128056 129436 129434 129449 129718 129444 129417 129442 129414 129413 128330 128039 128038 128037 128036 128035 128019 128020 129411 128062 129441 129432 129448 129446 129445 128060 128040 128059 128059 129415 129428 129451 128063 128007 128048 128057 128000 128001 128045 129435 129423 129443 128024 129426 129433 128043 128042 128016 128017 128015 128061 128023 128022 128055 128004 128003 128002 128046 129452 129420 129427 129412 128014 128052 128006 128005 128047 129409 128008 128008 128049 129437 129418 128058 128041 128021 129454 128021 128054 129447 129421 128018 128053 128099 129730 128101 128100 128483 128106 128145 128143 128108 128107 128109 129489 128716 128704 129496 129337 129342 129341 129340 129340 129340 129336 128693 128692 127947 9977 127946 128675 127940 127948 127938 9975 127943 129338 129495 129494 128111 128111 128111 128372 128378 128131 127939 129489 129489 129489 129486 129485 128694 128135 128134 129484 129503 129502 129501 129500 129500 129500 129499 129498 129497 129465 129464 129489 129334 127877 128124 129489 128104 128105 129329 129732 129731 129328 128112 129333 129493 128114 128115 128120 129332 129733 128119 129399 128130 128373 128110 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129489 129335 129318 128583 129487 129487 129487 128587 128129 128582 128581 128590 128589 128117 128116 129491 128105 128104 129489 128103 128102 129490 128118 129766 128068 128069 128065 128064 129460 129463 129729 129728 129504 128067 129467 128066 129462 129461 129471 129470 128170 128591 129309 129330 128080 129782 128588 128079 129331 128133 9997 129308 129307 128074 9994 128078 128077 129781 9757 128071 128405 128070 128073 128072 129305 129304 129311 129776 129310 9996 129295 129292 128076 129780 129779 129778 129777 128406 9995 128400 129306 128075 128164 128173 128495 128488 128065 128172 128163 128371 128168 128166 128171 128165 128162 128175 129293 128420 129294 128156 128153 128154 128155 129505 10084 10084 10084 128148 10083 128159 128149 128158 128147 128151 128150 128157 128152 128140 128139 128586 128585 128584 128574 128575 128576 128573 128572 128571 128569 128568 128570 129302 128126 128125 128123 128122 128121 129313 128169 9760 128128 128127 128520 129324 128544 128545 128548 129393 128555 128553 128531 128542 128547 128534 128561 128557 128546 128549 128560 128552 128551 128550 129401 129402 128563 128562 128559 128558 9785 128577 128543 129764 128533 129488 129299 128526 129400 129395 129312 129327 128565 128565 129396 129398 129397 129319 129326 129314 129301 129298 128567 128564 129316 128554 128532 128524 129317 128558 128556 128580 128530 128527 128566 129765 128566 128529 128528 129320 129296 129761 129300 129323 129763 129762 129325 129303 129297 128541 129322 128540 128539 128523 129394 128537 128538 9786 128535 128536 129321 128525 129392 128519 128522 128521 129760 128579 128578 128514 129315 128517 128518 128513 128516 128515)) (font-get-glyphs font 0 1 (vector i)) ;;(internal-char-font nil i) ))) --=-=-=--