public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer v3 0/2] assistant: clean up glob patterns & regexes
@ 2024-11-14 14:15 Christoph Heiss
  2024-11-14 14:15 ` [pve-devel] [PATCH installer v3 1/2] tree-wide: run rustfmt, fix clippy warnings Christoph Heiss
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christoph Heiss @ 2024-11-14 14:15 UTC (permalink / raw)
  To: pve-devel

The proxmox-auto-install-assistant uses regexes for udev property
matching, which can be simplified by some simple prefix matching and
splitting on '='.

The latter also significantly reduces binary size (-46%) due to the
removing the regex dependency, for details see patch #2.

Overall no functional changes in this series.

history
=======

v2: https://lore.proxmox.com/pve-devel/20240513094936.412650-1-c.heiss@proxmox.com/
v1: https://lists.proxmox.com/pipermail/pve-devel/2024-May/063802.html

Changes v2 -> v3:
  * rebased on latest master, dropping applied & obsolete patches

Changes v1 -> v2:
  * rebased on latest master

Christoph Heiss (2):
  tree-wide: run rustfmt, fix clippy warnings
  assistant: avoid regex for simple prefix matching

 proxmox-auto-install-assistant/src/main.rs   | 61 +++++++++-----------
 proxmox-auto-installer/tests/parse-answer.rs |  2 +-
 proxmox-installer-common/src/setup.rs        |  5 +-
 proxmox-tui-installer/src/views/mod.rs       |  2 +-
 4 files changed, 32 insertions(+), 38 deletions(-)

--
2.44.0



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-14 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-14 14:15 [pve-devel] [PATCH installer v3 0/2] assistant: clean up glob patterns & regexes Christoph Heiss
2024-11-14 14:15 ` [pve-devel] [PATCH installer v3 1/2] tree-wide: run rustfmt, fix clippy warnings Christoph Heiss
2024-11-14 14:15 ` [pve-devel] [PATCH installer v3 2/2] assistant: avoid regex for simple prefix matching Christoph Heiss
2024-11-14 19:53 ` [pve-devel] applied: [PATCH installer v3 0/2] assistant: clean up glob patterns & regexes Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal