From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 3A94E6EC58; Mon, 2 Aug 2021 19:05:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3A94E6EC58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1627920354; bh=nj0LnVRGLgSIumQWGXxzResZAJWS6EE1p/HQbYlFtqA=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=BYXDcqu2kuO0HNjNaGiOyaIyIZjOkyr8NfItqZF5wrfDda/CZxhNCqqOGfilXqi0c kjTrg/TkwEPFZb1q2B4WPPZ0H8N9vRfiTh2j5M6aqEa9BnCSHK4i0KlHVLrsAIQdMq 3WBxSd6YrmGrQURaGDEIDKy5MIl8fxwanWq5z+pI= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9ED156EC58 for ; Mon, 2 Aug 2021 19:05:52 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9ED156EC58 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mAaRr-0002GR-1b; Mon, 02 Aug 2021 19:05:51 +0300 Date: Mon, 2 Aug 2021 18:42:13 +0300 To: Sergey Ostanevich Message-ID: <20210802154213.GC27855@tarantool.org> References: <1733a6045e7ae1ff2cac8c4a49bcdca3388f65aa.1625587322.git.skaplun@tarantool.org> <20210727135941.GR27855@tarantool.org> <9C3661B1-0D21-42B7-94F6-C9C14FCEBCCD@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.10.1 (2018-07-13) X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD941C43E597735A9C36A98DBA789EBB6AE26DB9A6C1D9BF7E0182A05F5380850407816EF0AF2FED85F4ADBBCB93A67D3FE260389A2756F2F1B2F6E94504C1C51F7 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE79FB50E46F38499D1EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063764345650F0BBEB0B8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D825B1C387DB28C50CD9888A329D59AE7B117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD182CC0D3CB04F14752D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6D0C9BB9AE6BD5D69089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A5C66BE8421FF8B855ECE7DB9E8A03670E2FC224240D194955D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA751B940EDA0DFB0535410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F05B761BB9C2AA446A1A3977FE0BF3B87F4B576DCDEEAC361C01A5CAFC7F3EE23167764CB39CF3BB1D7E09C32AA3244C5FACED50EFCB528B6D9447C19EEF15BA5A1673A01BA68E40927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj9N286KAyvN5fOaeY+/6jGA== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5DCBC2CE4CAF18ADBAFEC267BD67947381A7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 1/2] Add support for full-range 64 bit lightuserdata. X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Sergos, On 02.08.21, Sergey Kaplun wrote: > Hi, Sergos! > > > > > Can’t help to laugh at Mike’s /* Fast path */, brilliant isn’t it? > > Perhaps addition of a new segment is not so often - and is counted to 256 - > > so we can easily sort the array each time to make it log(n) rather (n) for > > each lua_pushlightuserdata()? > > Mike's style... Also, I suggest to avoid sorting optimization for now by > two reasons: > > 1) We have no goal to beat everyone at ARM __yet__. Just make it > breathing. > 2) We have no performance tests to measure such changes (I hope > __yet__, too). And what is more important, this is impossible, AFAICS. The segment *id* is returned to "userspace", so you can't just reorder the segments without LUD values to be updated. The issue becomes impossible since particular LUD value can't be obtained within Lua internal world. Hence this is the *fastest* path for the current solution. Anyway, nobody can stop us to improve it ;) > > > -- > Best regards, > Sergey Kaplun -- Best regards, IM