+
    "Ý³j™  ã                  óŠ   a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^RI	H
t
 ]
! 4       tR
tR]R&   RtR]R&   ]3R R	 lltR# )zDisk IO utilities.)ÚannotationsN)ÚFinal)Úsetup_loggerz
Final[int]ÚDEFAULT_WRITE_SIZEÚBUFFER_SIZEc               ó    € V ^8„  d   QhRRRR/# )é   Úwrite_size_bytesÚintÚreturnÚfloat© )Úformats   "ÚU/home/luca/screen-checking/.venv/lib/python3.14/site-packages/gptqmodel/utils/disk.pyÚ__annotate__r      s   € ÷ !#ñ !#¨Sð !#È%ñ !#ó    c           	     ó0  € V ^ 8:  d   \        R4      h\        \        V 4      pRV,          p^ p \        P                  ! 4       p\
        P                  ! RR7      ;_uu_ 4       p\        VP                  R\        R7      ;_uu_ 4       pW08  d9   \        WV,
          4      pTP                  Wq8X  d   TMVRV 4       W7,          pK>  VP                  4        \        P                  ! VP                  4       4       RRR4       RRR4       \        P                  ! 4       V,
          pT^ 8:  d   \#        R
4      # Y8,          #   + '       g   i     LN; i  + '       g   i     LY; i  \         d$   p	\        P!                  RT	 24        Rp	?	R	# Rp	?	ii ; i)a  Return sequential write speed in bytes/s measured via a temporary file.

The helper writes ``write_size_bytes`` to a temporary file using a 32 MB CPU
buffer and measures wall-clock time. The temporary file is fsync'd before
computing the rate. Returns 0.0 on failure.
z!write_size_bytes must be positiveó    T)ÚdeleteÚwb)Ú	bufferingNz!Disk IO speed estimation failed: g        Úinf)Ú
ValueErrorÚminr   ÚtimeÚperf_counterÚtempfileÚNamedTemporaryFileÚopenÚnameÚwriteÚflushÚosÚfsyncÚfilenoÚOSErrorÚlogÚwarnr   )
r	   Ú
chunk_sizeÚchunkÚtotal_writtenÚ
start_timeÚtmp_fileÚhandleÚto_writeÚelapsedÚexcs
   &         r   Úestimate_disk_io_speedr1      s8  € ð ˜1ÔÜÐ<Ó=Ð=ä”[Ð"2Ó3€JØ�JÕ€EØ€MðÜ×&Ò&Ó(ˆ
Ü×(Ò(°×5Õ5¸Ü�h—m‘m T´[×AÕAÀVØ#Ô6Ü" :À-Õ/OÓP�HØ—L‘L¨(Ô*@¡ÀeÈIÈXÐFVÔWØ!Õ-’MØ—‘”Ü—’˜Ÿ™›Ô)÷ B÷ 6ô ×#Ò#Ó%¨
Õ2ˆð
 �!„|Ü�U‹|ÐàÕ"Ð"÷ B×Aú÷ 6×5ûô ô Ü�‰Ð4°S°EÐ:Ô;ÝûðúsH   ¯4E' Á#%EÂA3E	Ã;EÄ$E' ÅEÅEÅE$	ÅE' Å'FÅ2FÆFi  @i   )Ú__conditional_annotations__Ú__doc__Ú
__future__r   r"   r   r   Útypingr   Úloggerr   r&   r   Ú__annotations__r   r1   )r2   s   @r   Ú<module>r8      sI   øðÜ å "ã 	Û Û Ý å  ñ ƒn€à!2Ð �JÓ 2Ø*€ˆZÓ *ð 4F÷ !#ñ !#r   