# US 2023/0068942 A1 · Data processing method and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0068942 A1
- Document ID: US20230068942A1
- Status: Published application
- Kind: A1
- Application number: 17/691,738
- Filed: 2022-03-10
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Lenovo (Beijing) Limited
- Applicants: Lenovo (Beijing) Limited
- Inventors: Shuaizheng YANG
- Web page: https://patentgrep.com/patent/US20230068942A1

## CPC

- G06F 16/1744: {using compression, e.g. sparse files}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data processing method includes: determining a first parameter of a first data file; determining a compression strategy for compressing the first data file according to the first parameter; and compressing the first data file according to the compression strategy, where the first parameter includes at least one of: a length of time during which the first data file remains unexecuted while the electronic device running, an immediacy of the first data file, and a size of the first data file. The present disclosure also provides an electronic device. With the data processing method and electronic device provided by the present disclosure, data may be compressed more efficiently and more content space may be saved without affecting the use of other data files.

## Claims

### Claim 1

A data processing method comprising:
determining a first parameter of a first data file;
determining a compression strategy for compressing the first data file according to the first parameter; and
compressing the first data file according to the compression strategy,
wherein the first parameter includes at least one of: a length of time during which the first data file remains unexecuted while an electronic device is running, an immediacy of the first data file, and a size of the first data file.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compression strategy is a strategy for compressing the first data file with different compression ratios and/or frequencies according to the first parameter of the first data file.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
according to the length of time during which the first data file remains unexecuted while the electronic device is running, compressing the first data file by using different compression ratios, the longer the length of time during which the first data file remains unexecuted, the higher the compression ratio.

### Claim 4 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
according to the immediacy of the first data file, compressing the first data file using different compression ratios and/or compression frequencies, the higher the immediacy of the first data file, the lower the compression ratio and/or the compression frequency.

### Claim 5 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
according to the size of the first data file, compressing the first data file with different compression frequencies and/or compression frequencies, the larger the size of the first data file, the higher the compression frequency and/or the compression ratio.

### Claim 6 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
whether determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency corresponding to the first data file according to the size of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running; and
determining a second compression strategy for compressing the first data file according to the compression ratio and the compression frequency.

### Claim 7 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency of the first data file according to the immediacy of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running and according to the size of the first data file; and
determining a second compression strategy for compressing the first data file according to the compression frequency and the compression ratio.

### Claim 8 (depends on 1)

The method according to claim 1, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency corresponding to the first data file according to the immediacy of the first data file and according to the size of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running; and
determining a second compression strategy for compressing the first data file according to the compression frequency and the compression ratio.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the data processing method is applied to a compact operating system (Compact OS).

### Claim 10

An audio processing apparatus, comprising: a memory storing computer program instructions; and a processor coupled to the memory and configured to execute the computer program instructions and perform:
determining a first parameter of a first data file;
determining a compression strategy for compressing the first data file according to the first parameter; and
compressing the first data file according to the compression strategy,
wherein the first parameter includes at least one of: a length of time during which the first data file remains unexecuted while an electronic device is running, an immediacy of the first data file, and a size of the first data file.

### Claim 11 (depends on 10)

The audio processing apparatus of claim 10, wherein the compression strategy is a strategy for compressing the first data file with different compression ratios and/or frequencies according to the first parameter of the first data file.

### Claim 12 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter includes:
according to the length of time during which the first data file remains unexecuted while the electronic device is running, compressing the first data file by using different compression ratios, the longer the length of time during which the first data file remains unexecuted, the higher the compression ratio.

### Claim 13 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter includes:
according to the immediacy of the first data file, compressing the first data file using different compression ratios and/or compression frequencies, the higher the immediacy of the first data file, the lower the compression ratio and/or the compression frequency.

### Claim 14 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter includes:
according to the size of the first data file, compressing the first data file with different compression frequencies and/or compression frequencies, the larger the size of the first data file, the higher the compression frequency and/or the compression ratio.

### Claim 15 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter includes:
determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency corresponding to the first data file according to the size of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running; and
determining a second compression strategy for compressing the first data file according to the compression ratio and the compression frequency.

### Claim 16 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter includes:
determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency of the first data file according to the immediacy of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running and according to the size of the first data file; and
determining a second compression strategy for compressing the first data file according to the compression frequency and the compression ratio.

### Claim 17 (depends on 10)

The audio processing apparatus of claim 10, wherein determining the compression strategy for compressing the first data file according to the first parameter comprises:
determining whether the immediacy of the first data file is at a first level, compressing the first data file with a first compression strategy; and
in response to determining the immediacy of the first data file is not at the first level,
determining a compression frequency corresponding to the first data file according to the immediacy of the first data file and according to the size of the first data file;
determining a compression ratio of the first data file according to the length of time during which the first data file remains unexecuted while the electronic device is running; and
determining a second compression strategy for compressing the first data file according to the compression frequency and the compression ratio.

### Claim 19 (depends on 10)

The audio processing apparatus of claim 10, wherein the data processing method is applied to a compact operating system (Compact OS).

### Claim 20

A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
determining a first parameter of a first data file;
determining a compression strategy for compressing the first data file according to the first parameter; and
compressing the first data file according to the compression strategy,
wherein the first parameter includes at least one of: a length of time during which the first data file remains unexecuted while an electronic device is running, an immediacy of the first data file, and a size of the first data file.
